commit a897e14
Michael Forney
·
2016-04-30 05:42:24 +0000 UTC
parent 3fd35d6
Don't change pointer focus when mouse buttons are pressed
1 files changed,
+4,
-0
+4,
-0
1@@ -689,6 +689,10 @@ handle_motion(struct pointer_handler *handler, uint32_t time, wl_fixed_t fx, wl_
2 int32_t x = wl_fixed_to_int(fx), y = wl_fixed_to_int(fy);
3 struct swc_rectangle *geom;
4
5+ /* If buttons are pressed, don't change pointer focus. */
6+ if (swc.seat->pointer->buttons.size > 0)
7+ return false;
8+
9 wl_list_for_each (view, &compositor.views, link) {
10 if (!view->visible)
11 continue;