mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-19 11:30:22 -07:00
accept more windows as docks
This commit is contained in:
parent
a7c2c023fb
commit
9d34e848d9
@ -111,8 +111,8 @@ checkDock = ask >>= \w -> liftX $ do
|
|||||||
desk <- getAtom "_NET_WM_WINDOW_TYPE_DESKTOP"
|
desk <- getAtom "_NET_WM_WINDOW_TYPE_DESKTOP"
|
||||||
mbr <- getProp32s "_NET_WM_WINDOW_TYPE" w
|
mbr <- getProp32s "_NET_WM_WINDOW_TYPE" w
|
||||||
case mbr of
|
case mbr of
|
||||||
Just [r] -> return $ elem (fromIntegral r) [dock, desk]
|
Just rs -> return $ any (`elem` [dock,desk]) (map fromIntegral rs)
|
||||||
_ -> return False
|
_ -> return False
|
||||||
|
|
||||||
-- | Whenever a new dock appears, refresh the layout immediately to avoid the
|
-- | Whenever a new dock appears, refresh the layout immediately to avoid the
|
||||||
-- new dock.
|
-- new dock.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user