From 0d4c6fc5ccf7fd00859068fd4d9e55cdec6381ef Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Thu, 13 Sep 2012 10:28:27 -0500 Subject: [PATCH] fix code duplication resulting from rebase --- src/compton.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/compton.c b/src/compton.c index fc2f536..bc13f53 100644 --- a/src/compton.c +++ b/src/compton.c @@ -2353,11 +2353,9 @@ ev_window(XEvent *ev) { inline static void ev_focus_in(XFocusChangeEvent *ev) { win *w = find_win(dpy, ev->window); - if (!w) return; // To deal with events sent from windows just destroyed - if (!w) - return; + if (!w) return; w->focused = True; calc_opacity(dpy, w, False); @@ -2376,11 +2374,10 @@ ev_focus_out(XFocusChangeEvent *ev) { } win *w = find_win(dpy, ev->window); - if (!w) return; // To deal with events sent from windows just destroyed - if (!w) - return; + if (!w) return; + w->focused = False; calc_opacity(dpy, w, False);