Blob Blame Raw
diff -up easystroke-0.6.0/handler.cc.sendfix easystroke-0.6.0/handler.cc
--- easystroke-0.6.0/handler.cc.sendfix	2019-10-18 13:57:53.206976325 -0400
+++ easystroke-0.6.0/handler.cc	2019-10-18 13:58:59.254594046 -0400
@@ -545,7 +545,7 @@ class AbstractScrollHandler : public Han
 
 protected:
 	AbstractScrollHandler() : last_t(0), offset_x(0.0), offset_y(0.0) {
-		if (!prefs.move_back.get() || xstate->current_dev->absolute)
+		if (!prefs.move_back.get() || (xstate->current_dev && xstate->current_dev->absolute))
 			return;
 		Window dummy1, dummy2;
 		int dummy3, dummy4;
@@ -563,7 +563,7 @@ protected:
 	}
 protected:
 	void move_back() {
-		if (!prefs.move_back.get() || xstate->current_dev->absolute)
+		if (!prefs.move_back.get() || (xstate->current_dev && xstate->current_dev->absolute))
 			return;
 		XTestFakeMotionEvent(dpy, DefaultScreen(dpy), orig_x, orig_y, 0);
 	}
@@ -1115,6 +1115,8 @@ XState::XState() : current_dev(NULL), in
 
 void XState::run_action(RAction act) {
 	RModifiers mods = act->prepare();
+	IF_BUTTON(act, b)
+		return handler->replace_child(new ButtonHandler(mods, b));
 	if (IS_IGNORE(act))
 		return handler->replace_child(new IgnoreHandler(mods));
 	if (IS_SCROLL(act))