aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2017-09-07 13:37:24 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2017-09-07 14:16:01 -0400
commite2d35d9b775cc8f86ebcf4987cebce4a12f40c3e (patch)
tree2199233960d7570777fcf353690514f2d9c80d33
parenthandle first time desk setting for fullscreen clients without crashing (diff)
downloadenlightenment-e2d35d9b775cc8f86ebcf4987cebce4a12f40c3e.tar.gz
remove fullscreen clients from vdesk clients list when toggling sticky state
-rw-r--r--src/bin/e_client.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bin/e_client.c b/src/bin/e_client.c
index ee1f2c7fa..9404a6275 100644
--- a/src/bin/e_client.c
+++ b/src/bin/e_client.c
@@ -4293,6 +4293,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);
@@ -4327,6 +4329,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);