You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When setting initial_window_width and initial_window_height in kitty.conf in units of cells (e.g. 80c and 25c), and the display is Wayland, the values are doubled -- 80c/25c results in a 160x50 character window.
Using X11, the doubling does not happen.
To Reproduce
Steps to reproduce the behavior:
Edit kitty.conf to set initial_window_width 80c (and remember_window_size no)
Ensure using Wayland for display (linux_display_server wayland)
Start a new kitty window
For me, the window is 160chars wide (very wide!) rather than 80.
My screen is also hidpi, which might be contributing to the situation?
Screenshots
Environment details
kitty 0.21.2 (90164dfee7) created by Kovid Goyal
Linux ostrich 5.11.0-22-generic #23-Ubuntu SMP Thu Jun 17 00:34:23 UTC 2021 x86_64
Ubuntu 21.04 \n \l
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=21.04
DISTRIB_CODENAME=hirsute
DISTRIB_DESCRIPTION="Ubuntu 21.04"
Running under:Wayland
Loaded config files:
/home/egnor/.config/kitty/kitty.conf
Config options different from defaults:
background Color(red=64, green=0, blue=80)
background_opacity 0.85
font_size 8.0
initial_window_height (25, 'cells')
initial_window_width (80, 'cells')
remember_window_size False
This debug output has been copied to the clipboard
yes, its a DPI issue. The problem on wayland is, IIRC, there is no good
way to know what the DPI of a window will be before creating it,
therefore initial window sizes dont work very well. It might be possible
to work around, but it would require some spelunking...
Describe the bug
When setting
initial_window_width
andinitial_window_height
inkitty.conf
in units of cells (e.g.80c
and25c
), and the display is Wayland, the values are doubled -- 80c/25c results in a 160x50 character window.Using X11, the doubling does not happen.
To Reproduce
Steps to reproduce the behavior:
kitty.conf
to setinitial_window_width 80c
(andremember_window_size no
)linux_display_server wayland
)kitty
windowMy screen is also hidpi, which might be contributing to the situation?
Screenshots
Environment details
Additional context
Minimal kitty.conf:
The text was updated successfully, but these errors were encountered: