From 31a01bb80df29fa7afd48741bc8fe1a948314eab Mon Sep 17 00:00:00 2001 From: Kenny Levinsen Date: Mon, 15 Feb 2021 10:07:39 +0100 Subject: [PATCH] input: Commit transactions in seatop_default This is needed for focus_follows_mouse, and was accidentally omitted in the previous transaction commit shuffle. --- sway/input/seatop_default.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sway/input/seatop_default.c b/sway/input/seatop_default.c index a583ed623..3f974e848 100644 --- a/sway/input/seatop_default.c +++ b/sway/input/seatop_default.c @@ -4,6 +4,7 @@ #include #include #include +#include "sway/desktop/transaction.h" #include "sway/input/cursor.h" #include "sway/input/seat.h" #include "sway/input/tablet.h" @@ -530,6 +531,7 @@ static void check_focus_follows_mouse(struct sway_seat *seat, if (focus && hovered_output != node_get_output(focus)) { struct sway_workspace *ws = output_get_active_workspace(hovered_output); seat_set_focus(seat, &ws->node); + transaction_commit_dirty(); } return; } @@ -541,6 +543,7 @@ static void check_focus_follows_mouse(struct sway_seat *seat, struct sway_output *hovered_output = node_get_output(hovered_node); if (hovered_output != focused_output) { seat_set_focus(seat, seat_get_focus_inactive(seat, hovered_node)); + transaction_commit_dirty(); } return; } @@ -556,6 +559,7 @@ static void check_focus_follows_mouse(struct sway_seat *seat, if (hovered_node != e->previous_node || config->focus_follows_mouse == FOLLOWS_ALWAYS) { seat_set_focus(seat, hovered_node); + transaction_commit_dirty(); } } }