diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-02-23 17:45:27 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-02-23 17:45:27 +0100 |
commit | 894e8b41d335c3b7d23bc9e3982e9823037ceda3 (patch) | |
tree | 495f3790d7241486a5884f90a202adfa06cd169d | |
parent | 0bafbe18d9f0c5db47689b33affaf78622645ec8 (diff) | |
download | xmonad-conf-894e8b41d335c3b7d23bc9e3982e9823037ceda3.tar xmonad-conf-894e8b41d335c3b7d23bc9e3982e9823037ceda3.zip |
Clean up dialog window Query
-rw-r--r-- | xmonad.hs | 37 |
1 files changed, 20 insertions, 17 deletions
@@ -75,6 +75,11 @@ myStartupHook = do startupHook gnomeConfig setWMName "LG3D" +isDialogWindow :: Query Bool +isDialogWindow = do + atom__NET_WM_WINDOW_TYPE_DIALOG <- liftX $ getAtom "_NET_WM_WINDOW_TYPE_DIALOG" + atomProperty "_NET_WM_WINDOW_TYPE" =? atom__NET_WM_WINDOW_TYPE_DIALOG + atomProperty :: String -> Query Atom atomProperty p = ask >>= (\w -> liftX $ withDisplay $ \d -> fmap (fromMaybe 0) $ getAtomProperty d w p) @@ -86,23 +91,21 @@ getAtomProperty d w p = do myManageHook :: ManageHook -myManageHook = do - atom__NET_WM_WINDOW_TYPE_DIALOG <- liftX $ getAtom "_NET_WM_WINDOW_TYPE_DIALOG" - composeAll - [ composeOne - [ atomProperty "_NET_WM_WINDOW_TYPE" =? atom__NET_WM_WINDOW_TYPE_DIALOG -?> doFloat - , className =? "Guake.py" -?> doFloatMaybeFullscreen -- <+> doConfigBorderOff) - --, className =? "Do" -?> (doFloat <+> doConfigBorderOff) - , className =? "MPlayer" -?> doCenterFloat - , className =? "Gimp" -?> doFloat - , className =? "Display" -?> doFloat - , className =? "Wine" -?> doFloat - , className =? "Pcsx2" -?> doFloat - , stringProperty "WM_ICON_NAME" =? "ZeroGS" -?> doFloat - , isFullscreen -?> doFullscreen - ] - , manageHook gnomeConfig - ] +myManageHook = composeAll + [ composeOne + [ isDialogWindow -?> doFloat + , className =? "Guake.py" -?> doFloatMaybeFullscreen -- <+> doConfigBorderOff) + --, className =? "Do" -?> (doFloat <+> doConfigBorderOff) + , className =? "MPlayer" -?> doCenterFloat + , className =? "Gimp" -?> doFloat + , className =? "Display" -?> doFloat + , className =? "Wine" -?> doFloat + , className =? "Pcsx2" -?> doFloat + , stringProperty "WM_ICON_NAME" =? "ZeroGS" -?> doFloat + , isFullscreen -?> doFullscreen + ] + , manageHook gnomeConfig + ] myLayoutHook = manageFullscreen $ smartBorders (Full ||| tiled ||| Mirror tiled) |