简体   繁体   English

如何防止所有窗口浮动(xmonad)

[英]How to prevent all windows from floating (xmonad)

In my system, xmonad floating windows are extremely buggy. 在我的系统中,xmonad浮动窗口非常多。 Sometimes they appear out of the screen, under main windows. 有时它们出现在主窗口下的屏幕外。 They may rapidly activate and deactivate, making xmonad freeze. 它们可能会快速激活和停用,使xmonad冻结。 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. 我不知道Haskell或任何其他功能语言,所以我想要一个易于实现的解决方案。

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). 默认情况下,我的窗口都没有浮动(我回想起gimp在这里可能是个例外,默认情况下浮动,但也许我错了)。 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 . 如果你有一个浮动窗口,你希望它“显示为正常”按mod-t Still, I'm wondering why your windows float - did you hold mod while dragging the window with the mouse? 不过,我想知道为什么你的窗户漂浮 - 你用鼠标拖动窗户时是否持有mod

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 (例如)为sinkAll添加键绑定

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

Now when I press mod+shift+f every floating window turn normal 现在当我按下mod + shift + f时,每个浮动窗口都会正常转动

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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