diff options
-rw-r--r-- | sway/input/seatop_default.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/input/seatop_default.c b/sway/input/seatop_default.c index 11382276..9087434c 100644 --- a/sway/input/seatop_default.c +++ b/sway/input/seatop_default.c | |||
@@ -400,7 +400,7 @@ static void handle_button(struct sway_seat *seat, uint32_t time_msec, | |||
400 | } | 400 | } |
401 | 401 | ||
402 | // Handle clicking a container surface or decorations | 402 | // Handle clicking a container surface or decorations |
403 | if (cont) { | 403 | if (cont && state == WLR_BUTTON_PRESSED) { |
404 | node = seat_get_focus_inactive(seat, &cont->node); | 404 | node = seat_get_focus_inactive(seat, &cont->node); |
405 | seat_set_focus(seat, node); | 405 | seat_set_focus(seat, node); |
406 | seat_pointer_notify_button(seat, time_msec, button, state); | 406 | seat_pointer_notify_button(seat, time_msec, button, state); |