Search code examples
haskellxmonad

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.


Solution

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

    import XMonad.Actions.SinkAll
    

    and (e.g.) add keybinding for sinkAll

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

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