{
Ecore_Evas *ee;
Ecore_Wl_Event_Window_Configure *ev;
+ int nw = 0, nh = 0;
LOGFN(__FILE__, __LINE__, __FUNCTION__);
ee = ecore_event_window_match(ev->win);
if (!ee) return ECORE_CALLBACK_PASS_ON;
if (ev->win != ee->prop.window) return ECORE_CALLBACK_PASS_ON;
+
if ((ee->x != ev->x) || (ee->y != ev->y))
{
- /* ee->x = ev->x; */
- /* ee->y = ev->y; */
ee->req.x = ee->x;
ee->req.y = ee->y;
if (ee->func.fn_move) ee->func.fn_move(ee);
}
- if ((ee->req.w != ev->w) || (ee->req.h != ev->h))
+
+ nw = ev->w;
+ nh = ev->h;
+
+ if (ee->prop.maximized)
+ {
+ int fw = 0, fh = 0;
+
+ evas_output_framespace_get(ee->evas, NULL, NULL, &fw, &fh);
+ nw = ev->w - fw;
+ nh = ev->h - fh;
+ }
+
+ if ((ee->w != nw) || (ee->h != nh))
{
- ee->req.w = ev->w;
- ee->req.h = ev->h;
+ ee->req.w = nw;
+ ee->req.h = nh;
if (ee->func.fn_resize) ee->func.fn_resize(ee);
}
{
Ecore_Evas *ee;
Ecore_Wl_Event_Window_Configure *ev;
+ int nw = 0, nh = 0;
LOGFN(__FILE__, __LINE__, __FUNCTION__);
if ((ee->x != ev->x) || (ee->y != ev->y))
{
- /* ee->x = ev->x; */
- /* ee->y = ev->y; */
ee->req.x = ee->x;
ee->req.y = ee->y;
if (ee->func.fn_move) ee->func.fn_move(ee);
}
- if ((ee->req.w != ev->w) || (ee->req.h != ev->h))
+
+ nw = ev->w;
+ nh = ev->h;
+
+ if (ee->prop.maximized)
+ {
+ int fw = 0, fh = 0;
+
+ evas_output_framespace_get(ee->evas, NULL, NULL, &fw, &fh);
+ nw = ev->w - fw;
+ nh = ev->h - fh;
+ }
+
+ if ((ee->w != nw) || (ee->h != nh))
{
- /* ee->w = ev->w; */
- /* ee->h = ev->h; */
- ee->req.w = ev->w;
- ee->req.h = ev->h;
+ ee->req.w = nw;
+ ee->req.h = nh;
if (ee->func.fn_resize) ee->func.fn_resize(ee);
}