[英]Xmonad how to prevent floating window from staying always on top?
This is my layout config:这是我的布局配置:
mySpacing :: Integer -> l a -> XMonad.Layout.LayoutModifier.ModifiedLayout Spacing l a
mySpacing i = spacingRaw False (Border i i i i) True (Border i i i i) True
tiled = renamed [Replace "tiled"]
$ smartBorders
$ limitWindows 12
$ mySpacing 5
$ ResizableTall 1 (3/100) (1/2) []
full = renamed [Replace "full"]
$ noBorders
$ Full
magnify = renamed [Replace "magnify"]
$ magnifier
$ limitWindows 4
$ mySpacing 5
$ ResizableTall 1 (3/100) (1/2) []
myLayout = T.toggleLayouts full $ desktopLayoutModifiers $ onWorkspaces ["7"] magnify $ myDefaultLayout
where
myDefaultLayout = tiled
||| magnify
How to prevent floating window from always staying on top and rather hide below the active window on a workspace?如何防止浮动窗口始终停留在顶部,而是隐藏在工作区的活动窗口下方?
The answer to the question as asked is that it can't be done from outside the xmonad library.所问问题的答案是不能从 xmonad 库外部完成。 xmonad has a deeply-baked assumption that all floating windows should appear above any tiled window. xmonad 有一个根深蒂固的假设,即所有浮动窗口都应该出现在任何平铺窗口之上。
If you don't ever need to resize your floating windows, you could consider playing with SimplestFloat , LayoutCombinators , and sending messages in your manageHook
, but I suspect it's going to be more trouble than it's worth.如果您不需要调整浮动窗口的大小,您可以考虑使用SimplestFloat 、 LayoutCombinators并在您的manageHook
发送消息,但我怀疑它会比它的价值更麻烦。
Otherwise your only recourse is grabbing a copy of the xmonad source and modifying it.否则,您唯一的办法就是获取 xmonad 源代码的副本并对其进行修改。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.