Kill fake_motion
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
@@ -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; @@ -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;