]> Dogcows Code - chaz/openbox/commitdiff
set event_curtime if we're going to use it only
authorDana Jansens <danakj@orodu.net>
Thu, 12 Apr 2007 02:26:58 +0000 (02:26 +0000)
committerDana Jansens <danakj@orodu.net>
Thu, 12 Apr 2007 02:26:58 +0000 (02:26 +0000)
openbox/event.c

index 3aa91c618ffbb14cb667a6434c3ea4b459f55e94..7dfcc0c70d91e527f1a979aae83600bd4da4561c 100644 (file)
@@ -560,9 +560,11 @@ static void event_handle_root(XEvent *e)
         msgtype = e->xclient.message_type;
         if (msgtype == prop_atoms.net_current_desktop) {
             guint d = e->xclient.data.l[0];
-            event_curtime = e->xclient.data.l[1];
-            if (d < screen_num_desktops)
+            if (d < screen_num_desktops) {
+                event_curtime = e->xclient.data.l[1];
+                ob_debug("SWITCH DESKTOP TIME: %d\n", event_curtime);
                 screen_set_desktop(d);
+            }
         } else if (msgtype == prop_atoms.net_number_of_desktops) {
             guint d = e->xclient.data.l[0];
             if (d > 0)
This page took 0.024634 seconds and 4 git commands to generate.