]> Dogcows Code - chaz/openbox/blobdiff - openbox/action.c
backwards logic
[chaz/openbox] / openbox / action.c
index 85d84798ab991e3eb433afbc01f8887d92671d92..4436aec9d2722a6e45429292cd53077ae33357ea 100644 (file)
@@ -1587,8 +1587,8 @@ void action_send_to_desktop(union ActionData *data)
     if (data->sendto.desk < screen_num_desktops ||
         data->sendto.desk == DESKTOP_ALL) {
         client_set_desktop(c, data->sendto.desk, data->sendto.follow);
-        if (data->sendto.follow)
-            screen_set_desktop(data->sendto.desk, TRUE);
+        if (data->sendto.follow && data->sendto.desk != screen_desktop)
+            screen_set_desktop(data->sendto.desk, c != focus_client);
     }
 }
 
@@ -1645,7 +1645,7 @@ void action_send_to_desktop_dir(union ActionData *data)
     {
         client_set_desktop(c, d, data->sendtodir.follow);
         if (data->sendtodir.follow && d != screen_desktop)
-            screen_set_desktop(d, TRUE);
+            screen_set_desktop(d, c != focus_client);
     }
 }
 
This page took 0.023443 seconds and 4 git commands to generate.