remove fullscreen clients from vdesk clients list when toggling sticky state

fix T5988
devs/bu5hm4n/sandbox_fix
Mike Blumenkrantz 5 years ago
parent 72b979ca2b
commit 378e371e74
  1. 4
      src/bin/e_client.c

@ -4657,6 +4657,8 @@ e_client_stick(E_Client *ec)
if (ec->sticky) return;
desk = ec->desk;
ec->desk = NULL;
if (desk && ec->fullscreen)
desk->fullscreen_clients = eina_list_remove(desk->fullscreen_clients, ec);
ec->sticky = 1;
ec->hidden = 0;
e_hints_window_sticky_set(ec, 1);
@ -4711,6 +4713,8 @@ e_client_unstick(E_Client *ec)
/* Set the desk before we unstick the client */
if (!ec->sticky) return;
desk = e_desk_current_get(ec->zone);
if (ec->desk && ec->fullscreen)
ec->desk->fullscreen_clients = eina_list_remove(ec->desk->fullscreen_clients, ec);
ec->desk = NULL;
ec->hidden = ec->sticky = 0;
e_hints_window_sticky_set(ec, 0);

Loading…
Cancel
Save