summaryrefslogtreecommitdiff
path: root/x11-misc/xkbd/files/xkbd-999999-evdev.patch
blob: 087fd74ea01a3d8744970d4d4c92bebe265f9a5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- a/src/xtg.c
+++ b/src/xtg.c
@@ -382,10 +382,12 @@
 static void map_to(){
 	float x=scrX1,y=scrY1,w=width,h=height,dx=pf[p_touch_add],dy=pf[p_touch_add];
 	_short m = 1;
+#ifdef USE_EVDEV
 	if (pa[p_touch_add] && pa[p_touch_add][0] == '+' && pa[p_touch_add][1] == 0) {
 		if (mwidth && devX!=0) dx = (devX - mwidth)/2;
 		if (mheight && devY!=0) dy = (devY - mheight)/2;
 	}
+#endif
 	if (dx!=0 && mwidth) {
 		float b = (w/mwidth)*dx;
 		x-=b;