aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/gnome-control-center/wayland.patch
blob: 19db51190b064bc95d325bff563476a121b96d96 (plain)
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
--- gnome-control-center-3.24.2.orig/panels/common/gsd-device-manager-udev.c
+++ gnome-control-center-3.24.2/panels/common/gsd-device-manager-udev.c
@@ -24,7 +24,10 @@
 #include <string.h>
 #include <gudev/gudev.h>
 
+#ifdef GDK_WINDOWING_WAYLAND
 #include <gdk/gdkwayland.h>
+#endif
+
 #include "gsd-device-manager-udev.h"
 
 struct _GsdUdevDeviceManager
@@ -227,6 +230,7 @@
 gsd_udev_device_manager_lookup_device (GsdDeviceManager *manager,
 				       GdkDevice	*gdk_device)
 {
+#ifdef GDK_WINDOWING_WAYLAND
 	const gchar *node_path;
 	GHashTableIter iter;
 	GsdDevice *device;
@@ -243,6 +247,7 @@
 			return device;
 		}
 	}
+#endif
 
 	return NULL;
 }