Drop xinput2 version checks
We always request XInput >= 2.3 and fail otherwise, we don't need to check for lower versions for touch events. https://gitlab.gnome.org/GNOME/mutter/merge_requests/672
This commit is contained in:
parent
a32559e5ae
commit
f304fa4869
3 changed files with 3 additions and 11 deletions
|
@ -255,8 +255,6 @@ clutter_backend_x11_create_device_manager (ClutterBackendX11 *backend_x11)
|
|||
"backend", backend_x11,
|
||||
"opcode", event_base,
|
||||
NULL);
|
||||
|
||||
backend_x11->xi_minor = minor;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -264,7 +262,6 @@ clutter_backend_x11_create_device_manager (ClutterBackendX11 *backend_x11)
|
|||
if (backend_x11->device_manager == NULL)
|
||||
{
|
||||
g_critical ("XI2 extension is missing.");
|
||||
backend_x11->xi_minor = -1;
|
||||
}
|
||||
|
||||
backend = CLUTTER_BACKEND (backend_x11);
|
||||
|
|
|
@ -100,7 +100,6 @@ struct _ClutterBackendX11
|
|||
Time last_event_time;
|
||||
|
||||
ClutterDeviceManager *device_manager;
|
||||
int xi_minor;
|
||||
|
||||
XSettingsClient *xsettings;
|
||||
Window xsettings_xwin;
|
||||
|
|
|
@ -1131,13 +1131,9 @@ clutter_device_manager_xi2_select_stage_events (ClutterDeviceManager *manager,
|
|||
XISetMask (mask, XI_Enter);
|
||||
XISetMask (mask, XI_Leave);
|
||||
|
||||
/* enable touch event support if we're running on XInput 2.2 */
|
||||
if (backend_x11->xi_minor >= 2)
|
||||
{
|
||||
XISetMask (mask, XI_TouchBegin);
|
||||
XISetMask (mask, XI_TouchUpdate);
|
||||
XISetMask (mask, XI_TouchEnd);
|
||||
}
|
||||
XISetMask (mask, XI_TouchBegin);
|
||||
XISetMask (mask, XI_TouchUpdate);
|
||||
XISetMask (mask, XI_TouchEnd);
|
||||
|
||||
xi_event_mask.deviceid = XIAllMasterDevices;
|
||||
xi_event_mask.mask = mask;
|
||||
|
|
Loading…
Reference in a new issue