[英]xmonad layout withIM stays the same size
I have a problem with xmonad and the XMonad.Layout.IM module.我有 xmonad 和 XMonad.Layout.IM 模块的问题。 I have the following configuration for my layout and no matter to what I change the parameter of "withIM", the window stays always the same size.我的布局具有以下配置,无论我如何更改“withIM”的参数,窗口始终保持相同的大小。
Config:配置:
38 import XMonad.Layout.IM
39 import XMonad.Layout.Grid
40 import XMonad.Layout.FixedColumn
41 import XMonad.Layout.Reflect
42 import XMonad.Layout.ThreeColumns
43 import Data.Ratio ((%))
... ...
62 sPx = 1
63
64 verticalLayout = spacing sPx $ avoidStruts $ reflectHoriz $ Tall 1 0.03 0.5
65 verticalLayoutLargeScreen = spacing sPx $ avoidStruts $ ThreeCol 1 0.03 0.5
66 horizontalLayout = spacing sPx $ avoidStruts $ Mirror $ Tall 1 0.03 0.5
67 webdevLayout = spacing sPx $ avoidStruts $ Tall 1 0.03 0.63
68 fullscreenLayout = noBorders $ fullscreenFull $ Full
69
70 myLayout =
71 onWorkspace "2:web" (webdevLayout ||| fullscreenLayout) $ reflectHoriz $
72 (withIM (1%7) (ClassName "Chat")
73 (verticalLayoutLargeScreen ||| Grid ||| Full |||
74 verticalLayout ||| horizontalLayout ||| fullscreenLayout))
Update: This is the output of xwininfo with the "(1%7)":更新:这是带有“(1%7)”的 xwininfo 的输出:
xwininfo: Window id: 0x1400006 "Profanity"
Absolute upper-left X: 3360
Absolute upper-left Y: 0
Relative upper-left X: 3360
Relative upper-left Y: 0
Width: 232
Height: 1042
Depth: 32
Visual: 0x7a
Visual Class: TrueColor
Border width: 4
Class: InputOutput
Colormap: 0x1400005 (not installed)
Bit Gravity State: NorthWestGravity
Window Gravity State: NorthWestGravity
Backing Store State: NotUseful
Save Under State: no
Map State: IsViewable
Override Redirect State: no
Corners: +3360+0 -0+0 -0-30 +3360-30
-geometry 32x74-0+0
And the output stays the same, even after changing the parameter to something else.即使将参数更改为其他内容,输出也保持不变。
I had the same problem and the solution is quite simple.我遇到了同样的问题,解决方案很简单。 You need to restart your pc (or session) after you changed the rational parameter (eg 1%7, or 3%7, ...) and it works.您需要在更改合理参数(例如 1%7 或 3%7,...)后重新启动您的电脑(或会话)并且它可以工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.