mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-08-01 20:51:52 -07:00
Prevent non-default XUtils windows from being composited
This commit is contained in:
@@ -63,6 +63,11 @@ createNewWindow (Rectangle x y w h) m col o = do
|
|||||||
case m of
|
case m of
|
||||||
Just em -> io $ selectInput d win em
|
Just em -> io $ selectInput d win em
|
||||||
Nothing -> io $ selectInput d win exposureMask
|
Nothing -> io $ selectInput d win exposureMask
|
||||||
|
-- @@@ ugly hack to prevent compositing
|
||||||
|
whenX (return $ isJust m) $ flip catchX (return ()) $ do
|
||||||
|
wINDOW_TYPE <- getAtom "_NET_WM_WINDOW_TYPE"
|
||||||
|
dESKTOP <- getAtom "_NET_WM_WINDOW_TYPE_DESKTOP"
|
||||||
|
io $ changeProperty32 d win wINDOW_TYPE aTOM propModeReplace [fi dESKTOP]
|
||||||
return win
|
return win
|
||||||
|
|
||||||
-- | Map a window
|
-- | Map a window
|
||||||
|
Reference in New Issue
Block a user