]> Dogcows Code - chaz/openbox/commitdiff
fix problems with conflicing interactive desktop switching and send-to-ing
authorDana Jansens <danakj@orodu.net>
Wed, 24 Sep 2003 06:29:09 +0000 (06:29 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 24 Sep 2003 06:29:09 +0000 (06:29 +0000)
openbox/action.c

index c6e66c3517ceaa1f8b5cf3162d802e6780f4722d..007073f1267c3573a5353df3024a18737079aabc 100644 (file)
@@ -1195,7 +1195,11 @@ void action_desktop_dir(union ActionData *data)
                              data->desktopdir.inter.any.interactive,
                              data->desktopdir.inter.final,
                              data->desktopdir.inter.cancel);
-    screen_set_desktop(d);
+    if (!data->sendtodir.inter.any.interactive ||
+        !data->sendtodir.inter.final)
+    {
+        screen_set_desktop(d);
+    }
 }
 
 void action_send_to_desktop_dir(union ActionData *data)
@@ -1210,9 +1214,13 @@ void action_send_to_desktop_dir(union ActionData *data)
                              data->sendtodir.inter.any.interactive,
                              data->sendtodir.inter.final,
                              data->sendtodir.inter.cancel);
-    client_set_desktop(c, d, data->sendtodir.follow);
-    if (data->sendtodir.follow)
-        screen_set_desktop(d);
+    if (!data->sendtodir.inter.any.interactive ||
+        !data->sendtodir.inter.final)
+    {
+        client_set_desktop(c, d, data->sendtodir.follow);
+        if (data->sendtodir.follow)
+            screen_set_desktop(d);
+    }
 }
 
 void action_desktop_last(union ActionData *data)
This page took 0.027395 seconds and 4 git commands to generate.