diff options
author | Stefan O'Rear <stefanor@cox.net> | 2007-06-04 06:23:43 +0200 |
---|---|---|
committer | Stefan O'Rear <stefanor@cox.net> | 2007-06-04 06:23:43 +0200 |
commit | a1737a36132b2867a1c795c5c5bb32cb130b74c0 (patch) | |
tree | 60d0be0b967c763064b3e2ec831c126d851e9836 /XMonad.hs | |
parent | 54d3c8e2d69754671ea9196384122d0202aa7a47 (diff) | |
download | xmonad-a1737a36132b2867a1c795c5c5bb32cb130b74c0.tar.gz xmonad-a1737a36132b2867a1c795c5c5bb32cb130b74c0.tar.xz xmonad-a1737a36132b2867a1c795c5c5bb32cb130b74c0.zip |
Set WM_STATE, iconify invisible windows (+9 loc)
Note that this breaks compatibility with certain programs described as
"obsolete" in the ICCCM (1994). See the command above the UnmapEvent handler
for details.
darcs-hash:20070604042343-e3110-4766eafca2875091189159f6a1df29eac3c21387.gz
Diffstat (limited to 'XMonad.hs')
-rw-r--r-- | XMonad.hs | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -18,7 +18,8 @@ module XMonad ( X, WindowSet, WorkspaceId(..), ScreenId(..), XState(..), XConf(..), Layout(..), Typeable, Message, SomeMessage(..), fromMessage, atom_WM_PROTOCOLS, atom_WM_DELETE_WINDOW, - runX, io, withDisplay, withWindowSet, isRoot, spawn, restart, trace, whenJust, whenX + runX, io, withDisplay, withWindowSet, isRoot, spawn, restart, trace, whenJust, whenX, + atom_WM_STATE ) where import StackSet (StackSet) @@ -95,9 +96,10 @@ getAtom :: String -> X Atom getAtom str = withDisplay $ \dpy -> io $ internAtom dpy str False -- | Common non-predefined atoms -atom_WM_PROTOCOLS, atom_WM_DELETE_WINDOW :: X Atom +atom_WM_PROTOCOLS, atom_WM_DELETE_WINDOW, atom_WM_STATE :: X Atom atom_WM_PROTOCOLS = getAtom "WM_PROTOCOLS" atom_WM_DELETE_WINDOW = getAtom "WM_DELETE_WINDOW" +atom_WM_STATE = getAtom "WM_STATE" ------------------------------------------------------------------------ -- Layout handling |