]> Dogcows Code - chaz/openbox/commitdiff
little sanity check. dont let you create more than 1000 desktops
authorDana Jansens <danakj@orodu.net>
Wed, 23 May 2007 04:17:30 +0000 (04:17 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 23 May 2007 04:17:30 +0000 (04:17 +0000)
openbox/event.c

index d7c723d120f1abbc1708f2ddbddf7b84305975b0..4f57aaeed3151d774d643088db416507f1a9f73e 100644 (file)
@@ -679,7 +679,7 @@ static void event_handle_root(XEvent *e)
             }
         } else if (msgtype == prop_atoms.net_number_of_desktops) {
             guint d = e->xclient.data.l[0];
-            if (d > 0)
+            if (d > 0 && d <= 1000)
                 screen_set_num_desktops(d);
         } else if (msgtype == prop_atoms.net_showing_desktop) {
             screen_show_desktop(e->xclient.data.l[0] != 0, NULL);
This page took 0.026733 seconds and 4 git commands to generate.