]> Dogcows Code - chaz/openbox/commitdiff
make omnipresent windows not flicker when changing desktops
authorMikael Magnusson <mikachu@comhem.se>
Fri, 25 May 2007 14:31:24 +0000 (14:31 +0000)
committerMikael Magnusson <mikachu@comhem.se>
Fri, 25 May 2007 14:31:24 +0000 (14:31 +0000)
openbox/action.c

index 4436aec9d2722a6e45429292cd53077ae33357ea..081b68f5293b921d91f1ba94f138cf21dc1fb5af 100644 (file)
@@ -1601,7 +1601,7 @@ void action_desktop(union ActionData *data)
     {
         screen_set_desktop(data->desktop.desk, TRUE);
         if (data->inter.any.interactive)
-            screen_desktop_popup(data->desktop.desk, TRUE);
+            screen_desktop_popup(data->desktop.desk, focus_client->desktop != DESKTOP_ALL);
     }
 }
 
@@ -1621,7 +1621,7 @@ void action_desktop_dir(union ActionData *data)
     if (!data->sendtodir.inter.any.interactive ||
         (data->sendtodir.inter.final && !data->sendtodir.inter.cancel))
     {
-        if (d != screen_desktop) screen_set_desktop(d, TRUE);
+        if (d != screen_desktop) screen_set_desktop(d, focus_client->desktop != DESKTOP_ALL);
     }
 }
 
This page took 0.0269779999999999 seconds and 4 git commands to generate.