From: Marco Peereboom Date: Thu, 29 Oct 2009 18:47:48 +0000 (+0000) Subject: ryan keeps putting variables in ifs for some reason... X-Git-Url: https://jasonwoof.com/gitweb/?a=commitdiff_plain;h=022ca339f1776f6a68fb7ad2ddacc834651be360;p=spectrwm.git ryan keeps putting variables in ifs for some reason... --- diff --git a/scrotwm.c b/scrotwm.c index b9e6c22..a1df7b4 100644 --- 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) {