forked from enlightenment/enlightenment
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
This commit is contained in:
parent
11065a905c
commit
42cc4e8c16
|
@ -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
|
// are mistaken ... so for now disable this until we have a debate on it
|
||||||
// && (!e_comp_object_mirror_visibility_check(ec->frame))
|
// && (!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)
|
if (ec->unredirected_single || _e_comp_x_client_data_get(ec)->iconic)
|
||||||
ecore_x_window_hide(_e_comp_x_client_window_get(ec));
|
ecore_x_window_hide(_e_comp_x_client_window_get(ec));
|
||||||
if (_e_comp_x_client_data_get(ec)->iconic)
|
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));
|
ecore_x_window_show(_e_comp_x_client_window_get(ec));
|
||||||
_e_comp_x_client_data_get(ec)->iconic = 0;
|
_e_comp_x_client_data_get(ec)->iconic = 0;
|
||||||
}
|
}
|
||||||
|
ec->netwm.state.hidden = 0;
|
||||||
|
e_hints_window_state_set(ec);
|
||||||
if (!ec->override)
|
if (!ec->override)
|
||||||
e_hints_window_visible_set(ec);
|
e_hints_window_visible_set(ec);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue