mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-07-30 19:51:51 -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
|
||||
Just em -> io $ selectInput d win em
|
||||
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
|
||||
|
||||
-- | Map a window
|
||||
|
Reference in New Issue
Block a user