英文:
File chooser windows above top of the screen in alternate screen using i3
问题
当我打开文件选择器窗口(浮动窗口)时,它以一种使上部超出屏幕的方式打开,如下所示。
只是注意到这只发生在我的次要显示器上,分辨率较低:
➜ xrandr G conn
eDP-1 连接主要 2256x1504+0+0(正常左倒右x轴y轴)285mm x 190mm
DP-1 连接 1920x1080+2256+0(正常左倒右x轴y轴)476mm x 268mm
是否有办法配置文件选择器(或任何浮动窗口),使其始终居中?或者至少适应较低的分辨率?
英文:
When I open a file-chooser window (floating), it opens in a way that the superior part is out of the screen, as shown below.
Is just noticed this only happens in my secondary monitor with lower resolution:
➜ xrandr G conn
eDP-1 connected primary 2256x1504+0+0 (normal left inverted right x axis y axis) 285mm x 190mm
DP-1 connected 1920x1080+2256+0 (normal left inverted right x axis y axis) 476mm x 268mm
Is there a way to configure the file-chooser (or any floating windows) so it is always centered? Or at least to fit in the lower resolution?
答案1
得分: 1
我遇到了完全相同的问题。我通过将以下行添加到我的i3配置文件来限制浮动窗口的最大大小来解决它:
floating_maximum_size 640 x 480
然而,正如它所说,这确实限制了_最大大小_,因此它将阻止浮动窗口以大于该大小打开,同时也不允许您手动调整其大小大于该值,这可能不是您想要的。但这是我使用的方式。
英文:
I had the exact same problem. I fixed it by restricting the max size of floating windows by adding the following line to my i3 config file:
floating_maximum_size 640 x 480
However this does, as it says, restrict the maximum size, so it will stop a floating window being opened larger than that size as well as also not allowing you to resize it any larger than that manually, which might not be what you want. It's what I use though.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。



评论