]> Dogcows Code - chaz/openbox/commitdiff
optimization
authorDana Jansens <danakj@orodu.net>
Wed, 9 May 2007 04:18:00 +0000 (04:18 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 9 May 2007 04:18:00 +0000 (04:18 +0000)
openbox/action.c

index 4573a866d77cfea489f4004cc0b18aa28936a32e..0cf233ad8da81fd41bb5a7e55f045473f6d7bcef 100644 (file)
@@ -1549,7 +1549,7 @@ void action_desktop_dir(union ActionData *data)
         !data->sendtodir.inter.final ||
         data->sendtodir.inter.cancel)
     {
-        screen_set_desktop(d, TRUE);
+        if (d != screen_desktop) screen_set_desktop(d, TRUE);
     }
 }
 
@@ -1570,7 +1570,7 @@ void action_send_to_desktop_dir(union ActionData *data)
         data->sendtodir.inter.cancel)
     {
         client_set_desktop(c, d, data->sendtodir.follow);
-        if (data->sendtodir.follow)
+        if (data->sendtodir.follow && d != screen_desktop)
             screen_set_desktop(d, TRUE);
     }
 }
This page took 0.031728 seconds and 4 git commands to generate.