Monitor: use broadcastMessage instead of sendMessage; this solves several issues

This commit is contained in:
Roman Cheplyaka 2008-11-17 13:39:57 +00:00
parent 0a935aff63
commit 6962d8f216

View File

@ -54,7 +54,7 @@ import Control.Monad
-- --
-- It's also useful to add some keybinding to toggle monitor visibility: -- It's also useful to add some keybinding to toggle monitor visibility:
-- --
-- > , ((mod1Mask, xK_u ), sendMessage ToggleMonitor) -- > , ((mod1Mask, xK_u ), broadcastMessage ToggleMonitor >> refresh)
-- --
-- Screenshot: <http://www.haskell.org/haskellwiki/Image:Xmonad-clock.png> -- Screenshot: <http://www.haskell.org/haskellwiki/Image:Xmonad-clock.png>
@ -113,9 +113,6 @@ addNamedPersistentMonitor name p r = ModifiedLayout (Monitor p r True (Just name
-- $hints -- $hints
-- - This module assumes that there is only one window satisfying property exists. -- - This module assumes that there is only one window satisfying property exists.
-- --
-- - On multihead setup, since two layouts are shown at the same time, to hide
-- monitor you need to hide it on both layouts.
--
-- - If you want the monitor to be available on /all/ layouts, use -- - If you want the monitor to be available on /all/ layouts, use
-- 'addPersistentMonitor' instead of 'addMonitor' to avoid unnecessary -- 'addPersistentMonitor' instead of 'addMonitor' to avoid unnecessary
-- flickering. You can still toggle monitor with a keybinding. -- flickering. You can still toggle monitor with a keybinding.
@ -138,5 +135,3 @@ addNamedPersistentMonitor name p r = ModifiedLayout (Monitor p r True (Just name
-- - automatically unmanage the window? -- - automatically unmanage the window?
-- --
-- - specify position relative to the screen -- - specify position relative to the screen
--
-- - toggle monitor on all workspaces (how?)