summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSpencer Janssen <sjanssen@cse.unl.edu>2007-10-28 00:05:50 +0200
committerSpencer Janssen <sjanssen@cse.unl.edu>2007-10-28 00:05:50 +0200
commitf837dd93a4fc902b7d763a76d7bdc95da5dcdaee (patch)
tree2976989c58f0fd073af112e1e3b1a05062acc452
parent8e4e62abb68807b215b40896be05c5bf46054517 (diff)
downloadxmobar-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.hs5
1 files changed, 5 insertions, 0 deletions
diff --git a/Main.hs b/Main.hs
index 7f9da13..c86ebe7 100644
--- a/Main.hs
+++ b/Main.hs
@@ -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