diff options
author | Kenny Levinsen <kl@kl.wtf> | 2021-02-15 10:07:39 +0100 |
---|---|---|
committer | Tudor Brindus <me@tbrindus.ca> | 2021-02-15 13:49:47 -0500 |
commit | 31a01bb80df29fa7afd48741bc8fe1a948314eab (patch) | |
tree | ded69fbed2180b33c550d9517f37878151f8a693 /sway/input/seatop_default.c | |
parent | b5b628cb41a4a316456d5ef3014f1a2cbdc5cfc2 (diff) |
input: Commit transactions in seatop_default
This is needed for focus_follows_mouse, and was accidentally omitted in
the previous transaction commit shuffle.
Diffstat (limited to 'sway/input/seatop_default.c')
-rw-r--r-- | sway/input/seatop_default.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/input/seatop_default.c b/sway/input/seatop_default.c index a583ed62..3f974e84 100644 --- a/sway/input/seatop_default.c +++ b/sway/input/seatop_default.c @@ -4,6 +4,7 @@ #include <wlr/types/wlr_cursor.h> #include <wlr/types/wlr_tablet_v2.h> #include <wlr/types/wlr_xcursor_manager.h> +#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(); } } } |