简体   繁体   中英

How to prevent all windows from floating (xmonad)

In my system, xmonad floating windows are extremely buggy. Sometimes they appear out of the screen, under main windows. They may rapidly activate and deactivate, making xmonad freeze. Or they may just be impossible to click on. How do I force every window to appear as normal? That is to say, to disable floating entirely.

I don't know Haskell or any other functional language, so I would like a solution that is easy to implement.

None of my windows floats per default (I recall vaguely that gimp might be an exception here, and floats per default, but maybe I'm wrong). Also I think floating windows should never be "under" tiled windows (but maybe a floating window is "over" another floating or tiling window). If you've got a floating window and you want it to "appear as normal" press mod-t . Still, I'm wondering why your windows float - did you hold mod while dragging the window with the mouse?

I can't help it ;)

Ok, I've found solution for it. I was required to

import XMonad.Actions.SinkAll

and (eg) add keybinding for sinkAll

(...) `additionalKeys`
[
((mod4Mask .|. shiftMask, xK_f), sinkAll)
]

Now when I press mod+shift+f every floating window turn normal

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM