文件选择窗口出现在交替屏幕上方,使用 i3。

huangapple go评论90阅读模式
英文:

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.

文件选择窗口出现在交替屏幕上方,使用 i3。

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.

huangapple
  • 本文由 发表于 2023年2月8日 20:44:27
  • 转载请务必保留本文链接:https://go.coder-hub.com/75385983.html
  • i3
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定