From 42cc4e8c16f7cd70130560a2b7daf802ee0457ed Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Mon, 12 Apr 2021 16:02:06 +0100 Subject: [PATCH] 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);