unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
blob 6fcb38a3606292e3723ec346637629c2554684fb 1225 bytes (raw)
name: packages/patches/kitty-fix-wayland-protocols.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
 
See <https://github.com/kovidgoyal/kitty/issues/6422> for details.

Modified with further fixes from <https://github.com/kovidgoyal/kitty/issues/6422#issuecomment-1622071032>.

From 95d15648fa375bb131ff897f0db03b764dabaf65 Mon Sep 17 00:00:00 2001
From: Kovid Goyal <kovid@kovidgoyal.net>
Date: Wed, 5 Jul 2023 10:29:33 +0530
Subject: [PATCH] Fix not building with wayland-protocols 1.32

Fix #6422

diff --git a/glfw/wl_platform.h b/glfw/wl_platform.h
index f35b55e94..42c90b1fa 100644
--- a/glfw/wl_platform.h
+++ b/glfw/wl_platform.h
@@ -122,6 +122,7 @@ typedef enum WaylandWindowState {
 	TOPLEVEL_STATE_TILED_RIGHT = 32,
 	TOPLEVEL_STATE_TILED_TOP = 64,
 	TOPLEVEL_STATE_TILED_BOTTOM = 128,
+        TOPLEVEL_STATE_SUSPENDED = 256,
 } WaylandWindowState;
 
 
diff --git a/glfw/wl_window.c b/glfw/wl_window.c
index f7e329609..23868154f 100644
--- a/glfw/wl_window.c
+++ b/glfw/wl_window.c
@@ -420,6 +420,9 @@ static void xdgToplevelHandleConfigure(void* data,
             C(TOPLEVEL_STATE_TILED_RIGHT);
             C(TOPLEVEL_STATE_TILED_TOP);
             C(TOPLEVEL_STATE_TILED_BOTTOM);
+#ifdef XDG_TOPLEVEL_STATE_SUSPENDED_SINCE_VERSION
+            C(TOPLEVEL_STATE_SUSPENDED);
+ #endif
 #undef C
         }
     }

debug log:

solving 6fcb38a3606292e3723ec346637629c2554684fb ...
found 6fcb38a3606292e3723ec346637629c2554684fb in https://git.savannah.gnu.org/cgit/guix.git

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).