summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Michael <cpmichael@osg.samsung.com>2016-02-19 11:07:00 -0500
committerBryce Harrington <bryce@osg.samsung.com>2016-02-19 18:30:40 -0800
commite1719c789185d4a70964ad76da5a924d688cf798 (patch)
tree2b1e0b90e8072f21a55228732dd5f036872cc2d3
parentf989c38a5e180e3a00531a6b55936b0066376213 (diff)
libinput-device: Remove unnecessary function call
When we handle pointer button events, we already retrieve the button state at the top of this function, so there is no real need to call the same function again as we can just reuse the 'button_state' variable that we have above. Signed-off-by: Chris Michael <cpmichael@osg.samsung.com> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
-rw-r--r--src/libinput-device.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libinput-device.c b/src/libinput-device.c
index 99b2916f..78b0ac92 100644
--- a/src/libinput-device.c
+++ b/src/libinput-device.c
@@ -154,7 +154,8 @@ handle_pointer_button(struct libinput_device *libinput_device,
notify_button(device->seat,
libinput_event_pointer_get_time(pointer_event),
libinput_event_pointer_get_button(pointer_event),
- libinput_event_pointer_get_button_state(pointer_event));
+ button_state);
+
return true;
}