Kitty: Wayland: Missing window decoration

Created on 25 May 2019  路  7Comments  路  Source: kovidgoyal/kitty

Wayland vs. X11:
kitty-0 14 0

$ kitty -v
kitty 0.14.0 created by Kovid Goyal

$ kitty --debug-gl
GL version string: '3.3 (Core Profile) Mesa 19.0.5' Detected version: 3.3

$ pacman -Q gnome-desktop kitty linux mesa wayland
gnome-desktop 1:3.32.2-1
kitty 0.14.0-1
linux 5.1.4.arch1-1
mesa 19.0.5-1
wayland 1.17.0-1

Most helpful comment

Unfortunately this renders Kitty pretty unusable on Gnome. It might be worthwhile detecting this by looking at DESKTOP_SESSION=gnome or XDG_CURRENT_DESKTOP=GNOME and not using the Wayland backend.

For now I've added KITTY_DISABLE_WAYLAND=1 to /etc/environment to get a functioning Kitty again.

All 7 comments

This is a limitation of glfw which kitty uses. When the compositor does not support server side decorations, glfw draws a plain white rectangle as window decorations.

Unfortunately this renders Kitty pretty unusable on Gnome. It might be worthwhile detecting this by looking at DESKTOP_SESSION=gnome or XDG_CURRENT_DESKTOP=GNOME and not using the Wayland backend.

For now I've added KITTY_DISABLE_WAYLAND=1 to /etc/environment to get a functioning Kitty again.

Why would missing close and minimize buttons render kitty unusable?

It's not just that, the window is now fullscreen by default and you have no window decorations to resize it by. I can't even figure out how to resize Kitty on Gnome right now.

I'm confused, as far as I recall, glfw does draw decorations, a plain white rectangle, which is what you show in your screen shot as well.

Oh and for reference, here is the discussion where the GNOME developers refuse to fix this issue:
https://gitlab.gnome.org/GNOME/mutter/issues/217

I just tried it with weston, which aslo has no server side decorations and using the plain borders provided by glfw to move and resize the window works fine for me.

Oh and if you are on older versions of gnome, resizing probably wont work because of this bug: https://bugzilla.gnome.org/show_bug.cgi?id=781811

Was this page helpful?
0 / 5 - 0 ratings