mirror of
https://github.com/xmonad/xmonad.git
synced 2025-07-27 02:01:52 -07:00
Manage windows that are created before thunk starts
This commit is contained in:
4
Main.hs
4
Main.hs
@@ -77,6 +77,10 @@ main = do
|
|||||||
io $ do selectInput dpy r (substructureRedirectMask .|. substructureNotifyMask)
|
io $ do selectInput dpy r (substructureRedirectMask .|. substructureNotifyMask)
|
||||||
sync dpy False
|
sync dpy False
|
||||||
registerKeys dpy r
|
registerKeys dpy r
|
||||||
|
(_, _, ws) <- io $ queryTree dpy r
|
||||||
|
forM_ ws $ \w -> do
|
||||||
|
wa <- io $ getWindowAttributes dpy w
|
||||||
|
when (waMapState wa == waIsViewable) (manage w)
|
||||||
go dpy
|
go dpy
|
||||||
|
|
||||||
return ()
|
return ()
|
||||||
|
Reference in New Issue
Block a user