diff options
author | Jochen Keil <jochen.keil@gmail.com> | 2012-08-16 20:08:50 +0200 |
---|---|---|
committer | Jochen Keil <jochen.keil@gmail.com> | 2012-08-16 20:08:50 +0200 |
commit | b57de3e23f36756d0ba85a10592dea02561f8b0f (patch) | |
tree | e5176525fa7d0712bca80ed16d27070f1d934f22 /src/Window.hs | |
parent | 81289a1382f901b11320130f8a9c07e593a468f3 (diff) | |
download | xmobar-b57de3e23f36756d0ba85a10592dea02561f8b0f.tar.gz xmobar-b57de3e23f36756d0ba85a10592dea02561f8b0f.tar.bz2 |
New configuration option 'hideOnStart'
When set to True the window is initially not mapped, i.e. hidden. It
then can be toggled manually (for example using the dbus interface) or
automatically (by a plugin) to make it reappear (unhide/reveal).
Diffstat (limited to 'src/Window.hs')
-rw-r--r-- | src/Window.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Window.hs b/src/Window.hs index 0ffa139..9b0c506 100644 --- a/src/Window.hs +++ b/src/Window.hs @@ -41,7 +41,7 @@ createWin d fs c = do win <- newWindow d (defaultScreenOfDisplay d) rootw r o setProperties r c d win srs when (lowerOnStart c) (lowerWindow d win) - mapWindow d win + when (not $ hideOnStart c) $ mapWindow d win return (r,win) -- | Updates the size and position of the window |