ActivityWatch / aw-watcher-window

Cross-platform window watcher (for use with ActivityWatch)
Mozilla Public License 2.0
91 stars 53 forks source link

Fixed crash when starting quickly #9

Closed johan-bjareholt closed 7 years ago

johan-bjareholt commented 7 years ago

xprop.py assumed that xprop always would find _NET_ACTIVE_WINDOW, which can be false. Usually when no window is focused it becomes 0x0, but that variable seems to be defined upon window unfocus so if aw-watcher-window starts before any window has been focused it used to crash.

ErikBjare commented 7 years ago

Looking good, go ahead and merge when Travis is done.