summaryrefslogtreecommitdiffhomepage
path: root/src/Window.hs
diff options
context:
space:
mode:
authorJochen Keil <jochen.keil@gmail.com>2012-08-09 10:12:39 +0200
committerJochen Keil <jochen.keil@gmail.com>2012-08-09 10:46:18 +0200
commitfa4b999c73067cb55e316b94fe62aebb147cea98 (patch)
tree1a8ce7da66ca387c2c8dba61f540a362140104db /src/Window.hs
parent536273a9d980cf3e71d8d05813e18b3ebcaf9233 (diff)
downloadxmobar-fa4b999c73067cb55e316b94fe62aebb147cea98.tar.gz
xmobar-fa4b999c73067cb55e316b94fe62aebb147cea98.tar.bz2
Create signal handler in main and pass it down to the start* functions
This is necessary for setting up the signal callback (trigger) from the Plugin interface. As another benefit it is now possible to implement the lowerOnStart config option properly by simply sending a Hide signal in startLoop.
Diffstat (limited to 'src/Window.hs')
-rw-r--r--src/Window.hs1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/Window.hs b/src/Window.hs
index 34ecbf4..4917f57 100644
--- a/src/Window.hs
+++ b/src/Window.hs
@@ -25,7 +25,6 @@ createWin d fs c = do
(r,o) = setPosition (position c) srs (fi ht)
win <- newWindow d (defaultScreenOfDisplay d) rootw r o
setProperties r c d win srs
- when (lowerOnStart c) (lowerWindow d win)
mapWindow d win
return (r,win)