summaryrefslogtreecommitdiff
path: root/debian/patches/01-synaptics-dont-grab-if-not-on-current-VT.patch
blob: 750cc25e5bb76dd5e7753ef59c12ae8bdfc8951c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Do not grab the synaptics device if not running on the current VT.
This helps when switching user or more in general when running more than one
instance of Xorg.

Index: xserver-xorg-input-synaptics/src/synaptics.c
===================================================================
--- xserver-xorg-input-synaptics.orig/src/synaptics.c	2009-11-19 21:14:09.183725703 +0900
+++ xserver-xorg-input-synaptics/src/synaptics.c	2009-11-19 22:00:51.296245013 +0900
@@ -747,6 +747,9 @@
 
     DBG(3, ErrorF("Synaptics DeviceOn called\n"));
 
+    if (xf86Screens[0]->vtSema == FALSE)
+	    return !Success;
+
     SetDeviceAndProtocol(local);
     local->fd = xf86OpenSerial(local->options);
     if (local->fd == -1) {