fix code duplication resulting from rebase

This commit is contained in:
Christopher Jeffrey 2012-09-13 10:28:27 -05:00
parent e2c14ee545
commit 0d4c6fc5cc
1 changed files with 3 additions and 6 deletions

View File

@ -2353,11 +2353,9 @@ ev_window(XEvent *ev) {
inline static void inline static void
ev_focus_in(XFocusChangeEvent *ev) { ev_focus_in(XFocusChangeEvent *ev) {
win *w = find_win(dpy, ev->window); win *w = find_win(dpy, ev->window);
if (!w) return;
// To deal with events sent from windows just destroyed // To deal with events sent from windows just destroyed
if (!w) if (!w) return;
return;
w->focused = True; w->focused = True;
calc_opacity(dpy, w, False); calc_opacity(dpy, w, False);
@ -2376,11 +2374,10 @@ ev_focus_out(XFocusChangeEvent *ev) {
} }
win *w = find_win(dpy, ev->window); win *w = find_win(dpy, ev->window);
if (!w) return;
// To deal with events sent from windows just destroyed // To deal with events sent from windows just destroyed
if (!w) if (!w) return;
return;
w->focused = False; w->focused = False;
calc_opacity(dpy, w, False); calc_opacity(dpy, w, False);