alacritty: Wrong window size

Opening a new alacritty instance results in a very small window size that is not the size I’ve specified in the configuration file. I can resize the window manually, but I’m not sure why it is suddenly not respecting the configuration values.

Arch Linux alacritty 0.9.0 (fed349aa) KDE/Wayland

[2021-11-11 14:03:19.390781985] [INFO ] [alacritty] Welcome to Alacritty
[2021-11-11 14:03:19.390813654] [INFO ] [alacritty] Configuration files loaded from:
                                                      "/home/mbc/.config/alacritty/alacritty.yml"
[2021-11-11 14:03:19.403393810] [DEBUG] [crossfont] Loaded Face Face { ft_face: Font Face: Regular, load_flags: TARGET_LIGHT, render_mode: "Normal", lcd_filter: 1 }
[2021-11-11 14:03:19.404674530] [DEBUG] [alacritty] Estimated DPR: 1
[2021-11-11 14:03:19.404683270] [DEBUG] [alacritty] Estimated window size: Some(PhysicalSize { width: 1430, height: 918 })
[2021-11-11 14:03:19.404690150] [DEBUG] [alacritty] Estimated cell size: 13 x 27
[2021-11-11 14:03:19.426471070] [INFO ] [alacritty] Device pixel ratio: 1
[2021-11-11 14:03:19.429176938] [INFO ] [alacritty] Initializing glyph cache...
[2021-11-11 14:03:19.434222756] [DEBUG] [crossfont] Loaded Face Face { ft_face: Font Face: Regular, load_flags: TARGET_LIGHT, render_mode: "Normal", lcd_filter: 1 }
[2021-11-11 14:03:19.439749431] [DEBUG] [crossfont] Loaded Face Face { ft_face: Font Face: Bold, load_flags: TARGET_LIGHT, render_mode: "Normal", lcd_filter: 1 }
[2021-11-11 14:03:19.445254425] [DEBUG] [crossfont] Loaded Face Face { ft_face: Font Face: Italic, load_flags: TARGET_LIGHT, render_mode: "Normal", lcd_filter: 1 }
[2021-11-11 14:03:19.450353673] [DEBUG] [crossfont] Loaded Face Face { ft_face: Font Face: Bold Italic, load_flags: TARGET_LIGHT, render_mode: "Normal", lcd_filter: 1 }
[2021-11-11 14:03:19.457462394] [INFO ] [alacritty] ... finished initializing glyph cache in 0.028273177s
[2021-11-11 14:03:19.457474014] [INFO ] [alacritty] Estimated DPR correctly, skipping resize
[2021-11-11 14:03:19.457479574] [INFO ] [alacritty] Cell size: 13 x 27
[2021-11-11 14:03:19.457483324] [INFO ] [alacritty] Padding: 0 x 0
[2021-11-11 14:03:19.457486354] [INFO ] [alacritty] Width: 1430, Height: 918
[2021-11-11 14:03:19.458421367] [INFO ] [alacritty] PTY dimensions: 34 x 110
[2021-11-11 14:03:19.459693966] [INFO ] [alacritty] Initialisation complete
[2021-11-11 14:03:19.459760466] [DEBUG] [alacritty_terminal] New num_cols is 2 and num_lines is 1
[2021-11-11 14:03:19.459800815] [INFO ] [alacritty] Padding: 0 x 0
[2021-11-11 14:03:19.459805855] [INFO ] [alacritty] Width: 2, Height: 1

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 3
  • Comments: 18 (6 by maintainers)

Commits related to this issue

Most upvoted comments

Yeah so KDE is asking us to be that tiny. At that point not much we can do.

No, it’s not, but if an app sends the initial properties after the initial commit, some compositor features may not work as expected. For example, since the app id is unknown when the initial state is committed, some window rules (a feature in kwin) may not work with alacritty, etc. Same goes to the min size, the compositor may choose not to send the first configure event with size of 0x0, in which case knowing the min size hint might be useful.

We’re being fed garbage in, in the full log downstream (https://bugs.kde.org/show_bug.cgi?id=445444) we have:

[3085624.976] -> xdg_wm_base@18.get_xdg_surface(new id xdg_surface@21, wl_surface@17) [3085624.986] -> xdg_surface@21.get_toplevel(new id xdg_toplevel@22) [3085624.990] -> wl_surface@17.commit() [3085624.994] -> xdg_toplevel@22.set_min_size(2, 1) [3085624.999] -> xdg_surface@21.set_window_geometry(0, 0, 1340, 1042) [3085625.006] -> wl_compositor@4.create_surface(new id wl_surface@23) [3085625.010] -> wl_seat@7.get_pointer(new id wl_pointer@24) [3085625.018] -> zxdg_decoration_manager_v1@5.get_toplevel_decoration(new id zxdg_toplevel_decoration_v1@25, xdg_toplevel@22) [3085625.024] -> zxdg_toplevel_decoration_v1@25.unset_mode() [3085625.027] -> xdg_toplevel@22.set_min_size(2, 1) [3085625.031] -> xdg_toplevel@22.set_max_size(0, 0) [3085625.035] -> xdg_toplevel@22.set_app_id(“Alacritty”) [3085625.038] -> xdg_toplevel@22.set_min_size(2, 1) [3085625.041] -> xdg_toplevel@22.set_max_size(0, 0) [3085625.047] -> xdg_toplevel@22.set_title(“Alacritty”)

That wl_surface,commit should be after the initial properties and deco creation. Otherwise kwin has nothing to go on for the first configure.