summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2016-06-30 16:10:14 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2016-07-04 07:42:59 +1000
commit9e477d21bce17561c37688b25f1dc990df131265 (patch)
tree311157e5e53f4e06affaa13e4536ec8f83c6e214 /src
parent0c51a52389ae5d83a3c76eca4ccf3beb409e01a8 (diff)
evdev: return the desired middle button emulation state
Middle button emulation may be delayed in turning on, but during that delay we already need to return the desired state. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src')
-rw-r--r--src/evdev-middle-button.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evdev-middle-button.c b/src/evdev-middle-button.c
index 19563cb3..48650a45 100644
--- a/src/evdev-middle-button.c
+++ b/src/evdev-middle-button.c
@@ -676,7 +676,7 @@ evdev_middlebutton_get(struct libinput_device *device)
{
struct evdev_device *evdev = (struct evdev_device*)device;
- return evdev->middlebutton.enabled ?
+ return evdev->middlebutton.want_enabled ?
LIBINPUT_CONFIG_MIDDLE_EMULATION_ENABLED :
LIBINPUT_CONFIG_MIDDLE_EMULATION_DISABLED;
}