mirror of
https://github.com/brl/mutter.git
synced 2024-11-10 07:56:14 -05:00
x11: don't create the libinput tapping property
If it doesn't exist, we don't have a touchpad. Don't create the property and potentially confuse other pieces of the stack that do the same check.
This commit is contained in:
parent
7668dd1c99
commit
661078a4f2
@ -230,11 +230,16 @@ is_touchpad_device (ClutterBackendX11 *backend_x11,
|
|||||||
guint32 *data = NULL;
|
guint32 *data = NULL;
|
||||||
int rc, format;
|
int rc, format;
|
||||||
Atom type;
|
Atom type;
|
||||||
|
Atom prop;
|
||||||
|
|
||||||
|
prop = XInternAtom (backend_x11->xdpy, "libinput Tapping Enabled", True);
|
||||||
|
if (prop == None)
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
clutter_x11_trap_x_errors ();
|
clutter_x11_trap_x_errors ();
|
||||||
rc = XIGetProperty (backend_x11->xdpy,
|
rc = XIGetProperty (backend_x11->xdpy,
|
||||||
info->deviceid,
|
info->deviceid,
|
||||||
XInternAtom (backend_x11->xdpy, "libinput Tapping Enabled", False),
|
prop,
|
||||||
0, 1, False, XA_INTEGER, &type, &format, &nitems, &bytes_after,
|
0, 1, False, XA_INTEGER, &type, &format, &nitems, &bytes_after,
|
||||||
(guchar **) &data);
|
(guchar **) &data);
|
||||||
clutter_x11_untrap_x_errors ();
|
clutter_x11_untrap_x_errors ();
|
||||||
|
Loading…
Reference in New Issue
Block a user