diff options
author | Jeroen Roovers <jer@gentoo.org> | 2020-07-21 12:22:06 +0200 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2020-07-21 12:30:27 +0200 |
commit | c1a1f1ebc4cb70693c3c54e8fc9ca96aeaa6e12f (patch) | |
tree | 3580465a803899727c0c83127d7469075b2a2ece /x11-misc/xkbd/files/xkbd-999999-evdev.patch | |
parent | x11-misc/xkbd: Version 0.8.18 (diff) | |
download | gentoo-c1a1f1ebc4cb70693c3c54e8fc9ca96aeaa6e12f.tar.gz gentoo-c1a1f1ebc4cb70693c3c54e8fc9ca96aeaa6e12f.tar.bz2 gentoo-c1a1f1ebc4cb70693c3c54e8fc9ca96aeaa6e12f.zip |
x11-misc/xkbd: Add live ebuild
Package-Manager: Portage-3.0.0, Repoman-2.3.23
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
Diffstat (limited to 'x11-misc/xkbd/files/xkbd-999999-evdev.patch')
-rw-r--r-- | x11-misc/xkbd/files/xkbd-999999-evdev.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/x11-misc/xkbd/files/xkbd-999999-evdev.patch b/x11-misc/xkbd/files/xkbd-999999-evdev.patch new file mode 100644 index 000000000000..087fd74ea01a --- /dev/null +++ b/x11-misc/xkbd/files/xkbd-999999-evdev.patch @@ -0,0 +1,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; |