ee_wayland: Update maximize and fullscreen state after configure

Summary:
If the compositor drops fullscreen or maximize for us the CSD to change
that state would become broken, as ecore_wl2 thought the window state
was whatever we last set it to from the client side.

Update that state on configure event.

fix T7211

Reviewers: devilhorns, zmike, eagleeye

Reviewed By: devilhorns, zmike

Subscribers: cedric, #committers, zmike

Tags: #efl

Maniphest Tasks: T7211

Differential Revision: https://phab.enlightenment.org/D6684
This commit is contained in:
Derek Foreman 2018-07-25 15:47:52 -05:00
parent 124703826f
commit 24e5aa668a
1 changed files with 5 additions and 0 deletions

View File

@ -592,6 +592,11 @@ _ecore_evas_wl_common_cb_window_configure(void *data EINA_UNUSED, int type EINA_
active = wdata->activated;
wdata->activated = ecore_wl2_window_activated_get(wdata->win);
/* If the compositor set these, we need to update internal state
* so things like CSD continue to function */
wdata->win->set_config.maximized = ee->prop.maximized;
wdata->win->set_config.fullscreen = ee->prop.fullscreen;
nw = ev->w;
nh = ev->h;