]> Dogcows Code - chaz/openbox/commitdiff
dont bother fucking everythign up when the desktops number hasnt changed
authorDana Jansens <danakj@orodu.net>
Sun, 14 Sep 2003 21:07:06 +0000 (21:07 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 14 Sep 2003 21:07:06 +0000 (21:07 +0000)
openbox/screen.c

index b1b1a561c1da8678044757f4fe9529dc883f1a49..f999a34b1dddf7dd32e828f6457747d38bc5c389 100644 (file)
@@ -350,6 +350,8 @@ void screen_set_num_desktops(guint num)
 
     g_assert(num > 0);
 
+    if (screen_num_desktops == num) return;
+
     old = screen_num_desktops;
     screen_num_desktops = num;
     PROP_SET32(RootWindow(ob_display, ob_screen),
This page took 0.025306 seconds and 4 git commands to generate.