From 022ca339f1776f6a68fb7ad2ddacc834651be360 Mon Sep 17 00:00:00 2001 From: Marco Peereboom Date: Thu, 29 Oct 2009 18:47:48 +0000 Subject: [PATCH] ryan keeps putting variables in ifs for some reason... --- scrotwm.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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) { -- 1.7.10.4