]> Dogcows Code - chaz/openbox/commitdiff
Remove unused variable
authorDana Jansens <danakj@orodu.net>
Mon, 1 Oct 2012 05:04:41 +0000 (01:04 -0400)
committerDana Jansens <danakj@orodu.net>
Sun, 7 Oct 2012 02:30:02 +0000 (22:30 -0400)
openbox/event.c

index 15a7a4790569a5d510b9f59c701a9cbdbcc3e21f..ccbb56e6ad5b3f6036e0404e744be94b32b9cbf0 100644 (file)
@@ -698,7 +698,6 @@ static void event_process(const XEvent *ec, gpointer data)
     if (e->type == ButtonPress || e->type == ButtonRelease) {
         ObWindow *w;
         static guint pressed = 0;
-        static Window pressed_win = None;
 
         event_sourcetime = event_curtime;
 
@@ -719,10 +718,8 @@ static void event_process(const XEvent *ec, gpointer data)
             if (prompt && !used)
                 used = event_handle_prompt(prompt, e);
 
-            if (e->type == ButtonPress) {
+            if (e->type == ButtonPress)
                 pressed = e->xbutton.button;
-                pressed_win = e->xbutton.subwindow;
-            }
         }
     }
     else if (e->type == KeyPress || e->type == KeyRelease ||
This page took 0.029242 seconds and 4 git commands to generate.