Prevent non-default XUtils windows from being composited

This commit is contained in:
Brandon S Allbery KF8NH
2011-02-24 00:32:24 +00:00
parent 8fb4c1e734
commit 521ef9e01d

View File

@@ -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