Commit 4b1c0256 authored by Benjamin Otte's avatar Benjamin Otte

x11: Don't call XInput API for core events

Fixes emacs crashing with XMing.

https://bugzilla.redhat.com/show_bug.cgi?id=1483942
parent 8dc23471
......@@ -3072,6 +3072,16 @@ gdk_x11_display_get_default_seat (GdkDisplay *display)
seats = gdk_display_list_seats (display);
/* Shortcut only one seat being available.
* This path always triggers for core events, so we can freely use XInput below. */
if (g_list_length (seats) == 1)
{
GdkSeat *seat = seats->data;
g_list_free (seats);
return seat;
}
gdk_x11_display_error_trap_push (display);
result = XIGetClientPointer (GDK_DISPLAY_XDISPLAY (display),
None, &device_id);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment