diff options
author | Christian Thiemann <mail@christian-thiemann.de> | 2007-10-06 19:54:58 +0200 |
---|---|---|
committer | Christian Thiemann <mail@christian-thiemann.de> | 2007-10-06 19:54:58 +0200 |
commit | 5c1619101354b86fb4dc27632b13c2f6f8fb4459 (patch) | |
tree | 20275d059df7256d22ab4d3e1d19834e915615a2 | |
parent | 1fc687f7b52957b95a2fae42ade846bcf17531b1 (diff) | |
download | xmonad-5c1619101354b86fb4dc27632b13c2f6f8fb4459.tar.gz xmonad-5c1619101354b86fb4dc27632b13c2f6f8fb4459.tar.xz xmonad-5c1619101354b86fb4dc27632b13c2f6f8fb4459.zip |
Add event handler for PropertyNotifyEvent that calls logHook if window title changed
darcs-hash:20071006175458-8602e-3bc9eb53bde0d2269c9026aaad7fc6dca285067f.gz
-rw-r--r-- | Main.hs | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -254,4 +254,8 @@ handle e@(ConfigureRequestEvent {ev_window = w}) = withDisplay $ \dpy -> do -- configuration changes in the root may mean display settings have changed handle (ConfigureEvent {ev_window = w}) = whenX (isRoot w) rescreen +-- property notify +handle PropertyEvent { ev_event_type = t, ev_atom = a } + | t == propertyNotify && a == wM_NAME = do logHook + handle e = broadcastMessage e -- trace (eventName e) -- ignoring |