summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2015-11-12 17:38:58 -0500
committerMike Blumenkrantz <zmike@osg.samsung.com>2015-11-12 17:38:58 -0500
commit64ceff507fd542da75dae628ea2446be91b437a3 (patch)
treec1992049a93480419c4f97181661a49d571db570
parent52866a300af174ee949562a62ff32107f836fade (diff)
update E_Client->desk member upon focusing a sticky client
a sticky window previously would always have the desk set for where it was set as sticky, meaning that anything which tries to access it will be reading wrong data here. more useful information to provide is the last desk which the sticky client was focused on, so update that upon focusing it
-rw-r--r--src/bin/e_client.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bin/e_client.c b/src/bin/e_client.c
index b305a290b..40a233af0 100644
--- a/src/bin/e_client.c
+++ b/src/bin/e_client.c
@@ -3550,6 +3550,8 @@ e_client_focused_set(E_Client *ec)
3550 3550
3551 e_hints_active_window_set(ec); 3551 e_hints_active_window_set(ec);
3552 _e_client_event_simple(ec, E_EVENT_CLIENT_FOCUS_IN); 3552 _e_client_event_simple(ec, E_EVENT_CLIENT_FOCUS_IN);
3553 if (ec->sticky && ec->desk && (!ec->desk->visible))
3554 e_client_desk_set(ec, e_desk_current_get(ec->zone));
3553} 3555}
3554 3556
3555E_API void 3557E_API void