i3: Output width/height wrong with Nvidia borders/underscan
I’m submitting a…
[x] Bug [ ] Feature Request [ ] Documentation Request [ ] Other (Please describe in detail)
Current Behavior
- Via nvidia-settings, configure the outputs so there are borders around the image (sometimes called underscore, or offset). E.g.:
DPY-1: 2880x1620 @2684x1509 +0+0 {
ViewPortIn=2684x1509,
ViewPortOut=2684x1509+98+55
}
- i3 does not detect the correct output output size of 2684x1509, instead it has 2880x1620 (i.e., ignoring the underscore). As a result, windows and bars overflow the to the right and bottom. I can’t move my mouse outside the visible screen, indicating that X knows the right size.
Note: Borders are handled correctly by Awesome, Qtile, and XMonad
peter@taffer ~ % i3-msg -t get_outputs | python -m json.tool
[
{
"name": "xroot-0",
"active": false,
"primary": false,
"rect": {
"x": 0,
"y": 0,
"width": 4800,
"height": 1620
},
"current_workspace": null
},
{
"name": "DP-0",
"active": true,
"primary": false,
"rect": {
"x": 0,
"y": 0,
"width": 2880,
"height": 1620
},
"current_workspace": "1"
},
{
"name": "DP-3",
"active": false,
"primary": false,
"rect": {
"x": 2880,
"y": 0,
"width": 1920,
"height": 1080
},
"current_workspace": null
}
]
Expected Behavior
After configuring borders/underscan, i3 would detect the correct display size that takes into account the borders and all windows and bars would fit on screen.
Reproduction Instructions
- Nvidia card and drivers
- Driver version: 430.14
- Card: GeForce GTX 970M
- Configure borders some borders. E.g.,:
$ nvidia-settings --assign CurrentMetaMode='2880x1620 @2684x1509 {ViewPortIn=2684x1509, ViewPortOut=2684x1509+98+55}'
- Look at the right and bottom of windows and bars
Environment
Output of i3 --moreversion 2>&-
:
Binary i3 version: 4.16.1 (2019-01-27) © 2009 Michael Stapelberg and contributors Running i3 version: 4.16.1 (2019-01-27) (pid 3792)abort…) Loaded i3 config: /home/peter/.config/i3/config (Last modified: Mon 27 May 2019 13:42:56 BST, 665 seconds ago) The i3 binary you just called: /usr/bin/i3 The i3 binary you are running: i3
Tested with no config, Arch stock, and custom. Exactly the same
Logfile URL: https://logs.i3wm.org/logs/5737248813219840.bz2
- Linux Distribution & Version: Arch Linux, updated - Are you using a compositor (e.g., xcompmgr or compton): no
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 16 (7 by maintainers)
@orestisfl I can give that a go