← easystroke

Kill fake_motion

1c0fbd3cfa443cc73f96e35a807b71bbcdad1719 · Thomas Jaeger · May 30, 2010 03:27

We don't need it anymore and in addition it was implemented incorrectly
on devices with non-standard range.  See also

http://sourceforge.net/apps/trac/easystroke/ticket/48

−8 · 2 files changed

  • grabber.cc +0 −7
  • grabber.h +0 −1
diff --git a/grabber.cc b/grabber.cc
index 1a32431..9ae5187 100644
--- a/grabber.cc
+++ b/grabber.cc
@@ -418,13 +418,6 @@ void Grabber::XiDevice::grab_button(ButtonInfo &bi, bool grab) {
 	}
 }
 
-void Grabber::XiDevice::fake_motion(int x, int y) {
-	XDevice fake_dev;
-	fake_dev.device_id = dev;
-	int axes[2] = { x, y };
-	XTestFakeDeviceMotionEvent(dpy, &fake_dev, False, 0, axes, 2, 0);
-}
-
 void Grabber::grab_xi(bool grab) {
 	if (!xi_grabbed == !grab)
 		return;
diff --git a/grabber.h b/grabber.h
index 8d97dcd..7823969 100644
--- a/grabber.h
+++ b/grabber.h
@@ -78,7 +78,6 @@ public:
 		}
 		void grab_device(bool grab);
 		void grab_button(ButtonInfo &bi, bool grab);
-		void fake_motion(int x, int y);
 	};
 
 	typedef std::map<XID, boost::shared_ptr<XiDevice> > DeviceMap;