From: Dana Jansens Date: Wed, 23 May 2007 04:17:30 +0000 (+0000) Subject: little sanity check. dont let you create more than 1000 desktops X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=1b82cc481ede56e7ec32fd6e0fc69dbec9fd5a3b;p=chaz%2Fopenbox little sanity check. dont let you create more than 1000 desktops --- diff --git a/openbox/event.c b/openbox/event.c index d7c723d1..4f57aaee 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -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);