summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-06-13 15:20:48 +0000
committerDana Jansens <danakj@orodu.net>2007-06-13 15:20:48 +0000
commit84b8cf165ab47a5cfc3e431be1b73d1613b12524 (patch)
treedc915f40a5a3e2293f8ce38c6dc2b687570b7755 /openbox
parent1e2b24cd2f2d21b5b263087fcee65ae622d0ee23 (diff)
fix focus flicker on sendto+follow
Diffstat (limited to 'openbox')
-rw-r--r--openbox/screen.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/openbox/screen.c b/openbox/screen.c
index 3d3d73cd..d092ec28 100644
--- a/openbox/screen.c
+++ b/openbox/screen.c
@@ -579,6 +579,11 @@ void screen_set_desktop(guint num, gboolean dofocus)
allow_omni = focus_client && (client_normal(focus_client) &&
focus_client->desktop == DESKTOP_ALL);
+ /* the client moved there already so don't move focus. prevent flicker
+ on sendtodesktop + follow */
+ if (focus_client && focus_client->desktop == screen_desktop)
+ dofocus = FALSE;
+
/* have to try focus here because when you leave an empty desktop
there is no focus out to watch for. also, we have different rules
here. we always allow it to look under the mouse pointer if