JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
ryan keeps putting variables in ifs for some reason...
authorMarco Peereboom <marco@conformal.com>
Thu, 29 Oct 2009 18:47:48 +0000 (18:47 +0000)
committerMarco Peereboom <marco@conformal.com>
Thu, 29 Oct 2009 18:47:48 +0000 (18:47 +0000)
scrotwm.c

index b9e6c22..a1df7b4 100644 (file)
--- a/scrotwm.c
+++ b/scrotwm.c
@@ -3939,7 +3939,10 @@ enternotify(XEvent *e)
 {
        XCrossingEvent          *ev = &e->xcrossing;
        XEvent                  cne;
-       struct ws_win           *win;
+       struct ws_win           *win, *w;
+       Window                  focus_return;
+       int                     revert_to_return;
+
 
        DNPRINTF(SWM_D_FOCUS, "enternotify: window: %lu mode %d detail %d root "
            "%lu subwindow %lu same_screen %d focus %d state %d\n",
@@ -4005,10 +4008,6 @@ enternotify(XEvent *e)
         */
        if (win->ws->cur_layout->flags & SWM_L_FOCUSPREV &&
            last_focus_event != FocusOut) {
-               struct ws_win   *w;
-               Window          focus_return;
-               int             revert_to_return;
-
                XGetInputFocus(display, &focus_return, &revert_to_return);
                if ((w = find_window(focus_return)) == NULL ||
                    w->ws == win->ws) {