summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Jeffrey <[email protected]>2012-09-13 10:28:27 -0500
committerChristopher Jeffrey <[email protected]>2012-09-13 10:28:27 -0500
commit72a11771151f93b8b905e28601bdb79b4d181a04 (patch)
treec8c1744dfeb9fe185f2ce878aa6814e21903223c
parent6278604753e1f9a08a75119f9b661178dd450bd0 (diff)
downloadtdebase-72a11771151f93b8b905e28601bdb79b4d181a04.tar.gz
tdebase-72a11771151f93b8b905e28601bdb79b4d181a04.zip
fix code duplication resulting from rebase
-rw-r--r--compton.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/compton.c b/compton.c
index fc2f536e5..bc13f53dd 100644
--- a/compton.c
+++ b/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);