|
|
@ -345,9 +345,13 @@ uint32_t wlr_seat_pointer_notify_button(struct wlr_seat *wlr_seat,
|
|
|
|
wlr_seat->pointer_state.grab_time = time;
|
|
|
|
wlr_seat->pointer_state.grab_time = time;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
wlr_seat->pointer_state.button_count++;
|
|
|
|
wlr_seat->pointer_state.button_count++;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
if (wlr_seat->pointer_state.button_count == 0) {
|
|
|
|
|
|
|
|
wlr_log(WLR_ERROR, "Corrupted seat button count");
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
wlr_seat->pointer_state.button_count--;
|
|
|
|
wlr_seat->pointer_state.button_count--;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
struct wlr_seat_pointer_grab *grab = wlr_seat->pointer_state.grab;
|
|
|
|
struct wlr_seat_pointer_grab *grab = wlr_seat->pointer_state.grab;
|
|
|
|
uint32_t serial = grab->interface->button(grab, time, button, state);
|
|
|
|
uint32_t serial = grab->interface->button(grab, time, button, state);
|
|
|
|