]> source.dussan.org Git - tigervnc.git/commitdiff
Avoid calling GetMaster() with old Xorg
authorPierre Ossman <ossman@cendio.se>
Fri, 15 Apr 2016 09:14:14 +0000 (11:14 +0200)
committerPierre Ossman <ossman@cendio.se>
Fri, 15 Apr 2016 09:14:14 +0000 (11:14 +0200)
GetMaster() wasn't exported until Xorg 1.18 so it is unsafe to use
from libvnc.so for older versions.

unix/xserver/hw/vnc/InputXKB.c

index 490d6d1944f47de781329da52f7c6af74d60dffb..2a3f7afb0223c4b44b098e988bc6f4e94692e34d 100644 (file)
 #define KEYBOARD_OR_FLOAT MASTER_KEYBOARD
 #endif
 
+#if XORG < 118
+#define GetMaster(dev, type) ((dev)->master)
+#endif
+
 extern DeviceIntPtr vncKeyboardDev;
 
 static void vncXkbProcessDeviceEvent(int screenNum,