mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-10-21 20:52:19 +00:00
Use xdg-shell version 6
This gives us window "suspended" events. Theoretically these could be used to implement glfwWindowIconified() and thereby not render suspended OS windows. However let's wait a bit and see how this stabilizes. There are all sorts of bugs around this currently, for example: https://gitlab.gnome.org/GNOME/mutter/-/issues/3435 https://gitlab.gnome.org/GNOME/mutter/-/issues/3229 https://bugreports.qt.io/browse/QTBUG-124450
This commit is contained in:
parent
a4c9cb6d28
commit
6e1df67e03
1 changed files with 3 additions and 1 deletions
4
glfw/wl_init.c
vendored
4
glfw/wl_init.c
vendored
|
|
@ -521,7 +521,9 @@ static void registryHandleGlobal(void* data UNUSED,
|
|||
else if (is(xdg_wm_base))
|
||||
{
|
||||
_glfw.wl.xdg_wm_base_version = 1;
|
||||
#ifdef XDG_TOPLEVEL_WM_CAPABILITIES_SINCE_VERSION
|
||||
#ifdef XDG_TOPLEVEL_STATE_SUSPENDED_SINCE_VERSION
|
||||
_glfw.wl.xdg_wm_base_version = MIN(XDG_TOPLEVEL_STATE_SUSPENDED_SINCE_VERSION, (int)version);
|
||||
#elif defined(XDG_TOPLEVEL_WM_CAPABILITIES_SINCE_VERSION)
|
||||
_glfw.wl.xdg_wm_base_version = MIN(XDG_TOPLEVEL_WM_CAPABILITIES_SINCE_VERSION, (int)version);
|
||||
#endif
|
||||
_glfw.wl.wmBase = wl_registry_bind(registry, name, &xdg_wm_base_interface, _glfw.wl.xdg_wm_base_version);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue