[Wayland-bugs] [Bug 97595] Undefined behavior: disabling a mouse while "disabled on external mouse" is set on touchpad

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Sep 5 00:25:35 UTC 2016


https://bugs.freedesktop.org/show_bug.cgi?id=97595

            Bug ID: 97595
           Summary: Undefined behavior: disabling a mouse while "disabled
                    on external mouse" is set on touchpad
           Product: Wayland
           Version: unspecified
          Hardware: Other
                OS: All
            Status: ASSIGNED
          Severity: normal
          Priority: medium
         Component: libinput
          Assignee: wayland-bugs at lists.freedesktop.org
          Reporter: peter.hutterer at who-t.net
                CC: carlosg at gnome.org

libinput provides a LIBINPUT_CONFIG_SEND_EVENTS_DISABLED_ON_EXTERNAL_MOUSE on
touchpads which disable the device whenever an external pointer device is
plugged in.

This works as it says on the box but when a touchpad is set to this value and
LIBINPUT_CONFIG_SEND_EVENTS_DISABLED is set on the mouse device, then both
devices remain disabled. It's not possible for a client to have that flag set
on the touchpad and then disabling another device.

For Wayland this means there is no way to disable a pointer-looking device in
libinput while simultaneously having the "disabled on external mouse" feature
available. In X we can work around it by using the "Device Enabled" property
which is outside of libinput.

So the two options we have is:
* declare this as intended but that shifts the handling to the caller who now
has to keep track of external devices, making the option effectively moot.
because once you have the code for this, why use the built-in one...
* within libinput track which device(s) toggled this feature and re-enable the
touchpad when the respective device is disabled. This has a potential to get
iffy if we have more external pointer devices but I'm hoping that this is
enough of a niche that we can ignore at least that bit.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-bugs/attachments/20160905/68e53f19/attachment.html>


More information about the wayland-bugs mailing list