summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@proton.me>2023-12-07 22:37:00 -0600
committerLeonardo Hernández Hernández <leohdz172@proton.me>2023-12-07 22:37:00 -0600
commitf5d839844d1c1f9369ca55e058e91161da6929f7 (patch)
treef63180b900d769be8da2ade926f85c86a769f235
parente03896b4d61ae99eec16f3ed0408d5499c0494b4 (diff)
remove an unneeded cast in createpointer()
-rw-r--r--dwl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/dwl.c b/dwl.c
index 3148072..9219af5 100644
--- a/dwl.c
+++ b/dwl.c
@@ -982,8 +982,7 @@ void
createpointer(struct wlr_pointer *pointer)
{
if (wlr_input_device_is_libinput(&pointer->base)) {
- struct libinput_device *libinput_device = (struct libinput_device*)
- wlr_libinput_get_device_handle(&pointer->base);
+ struct libinput_device *libinput_device = wlr_libinput_get_device_handle(&pointer->base);
if (libinput_device_config_tap_get_finger_count(libinput_device)) {
libinput_device_config_tap_set_enabled(libinput_device, tap_to_click);