opt: fix build warnning
This commit is contained in:
@@ -2774,9 +2774,10 @@ void configure_pointer(struct libinput_device *device) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void createpointer(struct wlr_pointer *pointer) {
|
void createpointer(struct wlr_pointer *pointer) {
|
||||||
struct libinput_device *device;
|
struct libinput_device *device =
|
||||||
if (wlr_input_device_is_libinput(&pointer->base) &&
|
wlr_libinput_get_device_handle(&pointer->base);
|
||||||
(device = wlr_libinput_get_device_handle(&pointer->base))) {
|
|
||||||
|
if (device && wlr_input_device_is_libinput(&pointer->base)) {
|
||||||
configure_pointer(device);
|
configure_pointer(device);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user