forked from enlightenment/efl
ecore_wl2: handle configure_complete after handling configure
since configure_complete may result in a draw op, configure should be handled first so the size is correct.
This commit is contained in:
parent
67705589ac
commit
e50b43d02f
|
@ -205,13 +205,15 @@ _xdg_surface_cb_configure(void *data, struct xdg_surface *xdg_surface EINA_UNUSE
|
|||
{
|
||||
window->saved.w = window->set_config.geometry.w;
|
||||
window->saved.h = window->set_config.geometry.h;
|
||||
_configure_complete(window);
|
||||
}
|
||||
if (window->pending.configure && window->updating)
|
||||
ERR("Window shouldn't be rendering before initial configure");
|
||||
|
||||
if (!window->updating)
|
||||
_ecore_wl2_window_configure_send(window);
|
||||
|
||||
if (window->pending.configure)
|
||||
_configure_complete(window);
|
||||
}
|
||||
|
||||
static const struct xdg_surface_listener _xdg_surface_listener =
|
||||
|
|
|
@ -11,13 +11,15 @@ _zxdg_surface_cb_configure(void *data, struct zxdg_surface_v6 *zxdg_surface EINA
|
|||
{
|
||||
window->saved.w = window->set_config.geometry.w;
|
||||
window->saved.h = window->set_config.geometry.h;
|
||||
_configure_complete(window);
|
||||
}
|
||||
if (window->pending.configure && window->updating)
|
||||
ERR("Window shouldn't be rendering before initial configure");
|
||||
|
||||
if (!window->updating)
|
||||
_ecore_wl2_window_configure_send(window);
|
||||
|
||||
if (window->pending.configure)
|
||||
_configure_complete(window);
|
||||
}
|
||||
|
||||
static const struct zxdg_surface_v6_listener _zxdg_surface_listener =
|
||||
|
|
Loading…
Reference in New Issue