raster pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=42cc4e8c16f7cd70130560a2b7daf802ee0457ed

commit 42cc4e8c16f7cd70130560a2b7daf802ee0457ed
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Mon Apr 12 16:02:06 2021 +0100

    e x netwm - set _NET_WM_STATE_HIDDE when win hidden
    
    this can serve as a market - irrespective of icccm state that the
    window is not visible. still - some apps like chrome/chromium. set
    this so they are happier but this has side-ffects which are
    client-local problems.
    
    fixes T8923 ... i hope (seems to). ... but with side effects
    
    @fix
---
 src/bin/e_comp_x.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/bin/e_comp_x.c b/src/bin/e_comp_x.c
index 7fe794c72..6a8305438 100644
--- a/src/bin/e_comp_x.c
+++ b/src/bin/e_comp_x.c
@@ -1163,6 +1163,8 @@ _e_comp_x_client_hide(E_Client *ec)
 // are mistaken  ... so for now disable this until we have a debate on it
 //   && (!e_comp_object_mirror_visibility_check(ec->frame))
    ;
+   ec->netwm.state.hidden = 1;
+   e_hints_window_state_set(ec);
    if (ec->unredirected_single || _e_comp_x_client_data_get(ec)->iconic)
      ecore_x_window_hide(_e_comp_x_client_window_get(ec));
    if (_e_comp_x_client_data_get(ec)->iconic)
@@ -1209,6 +1211,8 @@ _e_comp_x_client_show(E_Client *ec)
         ecore_x_window_show(_e_comp_x_client_window_get(ec));
         _e_comp_x_client_data_get(ec)->iconic = 0;
      }
+   ec->netwm.state.hidden = 0;
+   e_hints_window_state_set(ec);
    if (!ec->override)
      e_hints_window_visible_set(ec);
 

-- 


Reply via email to