]> git.eshelyaron.com Git - emacs.git/commitdiff
Workaround touchscreen events are ignored on sway
authorYuuki Harano <masm+github@masm11.me>
Tue, 13 Apr 2021 12:23:48 +0000 (21:23 +0900)
committerYuuki Harano <masm+github@masm11.me>
Tue, 13 Apr 2021 12:23:48 +0000 (21:23 +0900)
On sway, gdk_device_get_window_at_position() in
xg_event_is_for_scrollbar always returns NULL, and all the touchscreen
press events are mishandled as on scrollbar.
We don't need to call xg_event_is_for_scrollbar, so removed the call.

* src/pgtkterm.c (button_event): Don't call xg_event_is_for_scrollbar.

src/pgtkterm.c

index 10a3999f70d0452a5c52301b48223db9ec7362ac..55c139fb7ca89a9377597a2fd379f18e7474af89 100644 (file)
@@ -6496,8 +6496,13 @@ button_event (GtkWidget * widget, GdkEvent * event, gpointer * user_data)
        }
     }
 
+  /* xg_event_is_for_scrollbar() doesn't work correctly on sway, and
+   * we shouldn't need it.
+   */
+#if 0
   if (f && xg_event_is_for_scrollbar (f, event))
     f = 0;
+#endif
 
   if (f)
     {