mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-07-26 09:41:52 -07:00
accept more windows as docks
This commit is contained in:
@@ -111,7 +111,7 @@ 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
|
||||||
|
Reference in New Issue
Block a user