do not accidentally place unplaced clients during wl *shell configure

This commit is contained in:
Mike Blumenkrantz 2017-03-17 13:17:02 -04:00
parent 69936f74a5
commit 047f08a994
3 changed files with 12 additions and 3 deletions

View File

@ -370,7 +370,10 @@ _wl_shell_surface_configure(struct wl_resource *resource, Evas_Coord x, Evas_Coo
}
}
if (ec->placed || ec->parent)
e_client_util_move_resize_without_frame(ec, x, y, w, h);
else
e_client_util_resize_without_frame(ec, w, h);
}
static void

View File

@ -552,7 +552,10 @@ _e_xdg_shell_surface_configure(struct wl_resource *resource, Evas_Coord x, Evas_
}
}
if (ec->placed || ec->parent)
e_client_util_move_resize_without_frame(ec, x, y, w, h);
else
e_client_util_resize_without_frame(ec, w, h);
}
static void

View File

@ -186,8 +186,11 @@ _e_xdg_shell_surface_configure(struct wl_resource *resource, Evas_Coord x, Evas_
"No Client For Shell Surface");
return;
}
if (!e_object_is_del(E_OBJECT(ec)))
if (e_object_is_del(E_OBJECT(ec))) return;
if (ec->placed)
e_client_util_move_resize_without_frame(ec, x, y, w, h);
else
e_client_util_resize_without_frame(ec, w, h);
}
static void