derekf pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=24e5aa668a291a70a97483caaf551e25bd7ea95a

commit 24e5aa668a291a70a97483caaf551e25bd7ea95a
Author: Derek Foreman <derek.foreman.sams...@gmail.com>
Date:   Wed Jul 25 15:47:52 2018 -0500

    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
---
 src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c 
b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
index 3ca5794084..16decc5632 100644
--- a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
+++ b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
@@ -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;
 

-- 


Reply via email to