forked from enlightenment/enlightenment
e - restore iconified windows on restart to iconified
This commit is contained in:
parent
403435f9fd
commit
3112e2ba1a
|
@ -3873,6 +3873,14 @@ _e_comp_x_hook_client_fetch(void *d EINA_UNUSED, E_Client *ec)
|
|||
(Ecore_X_Window*)&ec->icccm.window_group,
|
||||
&is_urgent))
|
||||
{
|
||||
unsigned int was_here = 0;
|
||||
|
||||
if (ecore_x_window_prop_card32_get(win,
|
||||
E_ATOM_E_WAS_HERE,
|
||||
&was_here, 1) != 1)
|
||||
was_here = 0;
|
||||
if (was_here) ec->icccm.state = ecore_x_icccm_state_get(win);
|
||||
ec->icccm.initial_state);
|
||||
if (ec->new_client)
|
||||
{
|
||||
/* clients may unset iconic state when no wm is present */
|
||||
|
|
|
@ -1675,6 +1675,7 @@ _e_main_desk_restore(void)
|
|||
// ensure windows for this desk are shown
|
||||
E_CLIENT_REVERSE_FOREACH(ec)
|
||||
{
|
||||
if (ec->iconic) continue;
|
||||
if ((ec->desk == desk) || (ec->sticky))
|
||||
{
|
||||
ec->hidden = 0;
|
||||
|
|
Loading…
Reference in New Issue