Top of visual bell starts too far down (in the middle of the first line) #2364
Labels
bug
Something isn't working
fixed-in-nightly
This is (or is assumed to be) fixed in the nightly builds.
What Operating System(s) are you seeing this problem on?
Windows
Which Wayland compositor or X11 Window manager(s) are you using?
No response
WezTerm version
wezterm 20220805-075344-ef532fc7
Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?
Yes, and I updated the version box above to show the version of the nightly that I tried
Describe the bug
WezTerm’s visual bell, at least on my system and with my configuration, starts too far down. It’s upper edge is in the middle of the first line. This occurs independent of the size of the window.
See here for a 5 second GIF demonstrating the issue (not embedded directly because it’s flashing).
The lower edge seems to be centered in the middle of the line after the last line. What I mean by that is that depending on the height of the window, there’s 0 to x-1 pixel rows of “dead space” below the last line, where
x
is the height of a line. (If there were x pixels or more available below the last line, there’d be space for another line.) The middle of the lower edge of the visual bell seems to be at around x/2 pixels below the lower edge of the last line. In other words, depending on the height of the window and how much space there is below the last line, the lower edge of the visual bell will extend somewhere between the lower edge of the window and halfway between the last line and the lower edge of the window.I’m not bugged by the lower edge as much as I am by the upper edge, but I thought I’d mention it nevertheless.
To Reproduce
Enable the visual bell (see my attached config) and cause some bells, I guess?
Configuration
Expected Behavior
I’d say, have the visual bell cover the whole window (or pane), regardless of where the edges of the actual text cells are. In other words, when the bell flashes, the whole background should flash, edge to edge, with no visible borders around the text.
If that’s not possible or you consider it ugly, let it flash from the top left of the top left cell to the bottom right of the bottom right cell.
Logs
Debug Overlay
wezterm version: 20220805-075344-ef532fc7
OpenGL version: Intel(R) HD Graphics 630 4.5.0 - Build 27.20.100.8682
Enter lua statements or expressions and hit Enter.
Press ESC or CTRL-D to exit
22:06:41.596 WARN wezterm_term::terminalstate > unhandled DecPrivateMode ResetDecPrivateMode(Unspecified(1005))
(I don’t think the warning is related.)
Anything else?
Thanks for your work, and sorry for submitting two bugs in a row ;)
The text was updated successfully, but these errors were encountered: