diff options
author | Spencer Janssen <sjanssen@cse.unl.edu> | 2007-10-28 00:05:50 +0200 |
---|---|---|
committer | Spencer Janssen <sjanssen@cse.unl.edu> | 2007-10-28 00:05:50 +0200 |
commit | f837dd93a4fc902b7d763a76d7bdc95da5dcdaee (patch) | |
tree | 2976989c58f0fd073af112e1e3b1a05062acc452 | |
parent | 8e4e62abb68807b215b40896be05c5bf46054517 (diff) | |
download | xmobar-f837dd93a4fc902b7d763a76d7bdc95da5dcdaee.tar.gz xmobar-f837dd93a4fc902b7d763a76d7bdc95da5dcdaee.tar.bz2 |
We must listen for ConfigureNotify events on the root window for xrandr
darcs-hash:20071027220550-a5988-c00d4bba8555aadea921c5bbedc16f21cc1b4672.gz
-rw-r--r-- | Main.hs | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -41,6 +41,11 @@ main = do c <- case file of [cfgfile] -> readConfig cfgfile _ -> readDefaultConfig + + -- listen for ConfigureEvents on the root window, for xrandr support: + rootw <- rootWindow d (defaultScreen d) + selectInput d rootw structureNotifyMask + civ <- newIORef c doOpts civ o conf <- readIORef civ |