summaryrefslogtreecommitdiffstats
path: root/app/active_window_watcher_x.cc
diff options
context:
space:
mode:
Diffstat (limited to 'app/active_window_watcher_x.cc')
-rw-r--r--app/active_window_watcher_x.cc11
1 files changed, 4 insertions, 7 deletions
diff --git a/app/active_window_watcher_x.cc b/app/active_window_watcher_x.cc
index c118718..3c11b15 100644
--- a/app/active_window_watcher_x.cc
+++ b/app/active_window_watcher_x.cc
@@ -66,13 +66,10 @@ void ActiveWindowWatcherX::NotifyActiveWindowChanged() {
if (format == 32 && num_items == 1) {
int xid = *reinterpret_cast<int*>(property);
GdkWindow* active_window = gdk_window_lookup(xid);
-
- if (active_window) {
- FOR_EACH_OBSERVER(
- Observer,
- observers_,
- ActiveWindowChanged(active_window));
- }
+ FOR_EACH_OBSERVER(
+ Observer,
+ observers_,
+ ActiveWindowChanged(active_window));
}
if (property)
XFree(property);