This commit is contained in:
livanh 2026-02-02 18:50:39 +01:00 committed by GitHub
commit 539c81cc4a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 10 additions and 1 deletions

View file

@ -130,7 +130,7 @@ static void seat_send_activate(struct sway_node *node, struct sway_seat *seat) {
}
}
static struct sway_keyboard *sway_keyboard_for_wlr_keyboard(
struct sway_keyboard *sway_keyboard_for_wlr_keyboard(
struct sway_seat *seat, struct wlr_keyboard *wlr_keyboard) {
struct sway_seat_device *seat_device;
wl_list_for_each(seat_device, &seat->devices, link) {

View file

@ -369,6 +369,11 @@ static void handle_button(struct sway_seat *seat, uint32_t time_msec,
return;
}
// Clear pending keyboard bindings, if any
if (state == WL_POINTER_BUTTON_STATE_PRESSED && modifiers != 0) {
sway_keyboard_for_wlr_keyboard(seat, keyboard)->held_binding = NULL;
}
// Handle clicking an empty workspace
if (node && node->type == N_WORKSPACE) {
if (state == WL_POINTER_BUTTON_STATE_PRESSED) {