aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input/seatop_default.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/input/seatop_default.c')
-rw-r--r--sway/input/seatop_default.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sway/input/seatop_default.c b/sway/input/seatop_default.c
index ffa43658..d20048d5 100644
--- a/sway/input/seatop_default.c
+++ b/sway/input/seatop_default.c
@@ -280,7 +280,10 @@ static void handle_button(struct sway_seat *seat, uint32_t time_msec,
280 280
281 // Handle clicking an empty workspace 281 // Handle clicking an empty workspace
282 if (node && node->type == N_WORKSPACE) { 282 if (node && node->type == N_WORKSPACE) {
283 seat_set_focus(seat, node); 283 if (state == WLR_BUTTON_PRESSED) {
284 seat_set_focus(seat, node);
285 }
286 seat_pointer_notify_button(seat, time_msec, button, state);
284 return; 287 return;
285 } 288 }
286 289