diff options
Diffstat (limited to 'sway/input/seatop_resize_tiling.c')
-rw-r--r-- | sway/input/seatop_resize_tiling.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/input/seatop_resize_tiling.c b/sway/input/seatop_resize_tiling.c index 2cca805d..c5fe269e 100644 --- a/sway/input/seatop_resize_tiling.c +++ b/sway/input/seatop_resize_tiling.c | |||
@@ -2,6 +2,7 @@ | |||
2 | #include <wlr/types/wlr_cursor.h> | 2 | #include <wlr/types/wlr_cursor.h> |
3 | #include <wlr/util/edges.h> | 3 | #include <wlr/util/edges.h> |
4 | #include "sway/commands.h" | 4 | #include "sway/commands.h" |
5 | #include "sway/desktop/transaction.h" | ||
5 | #include "sway/input/cursor.h" | 6 | #include "sway/input/cursor.h" |
6 | #include "sway/input/seat.h" | 7 | #include "sway/input/seat.h" |
7 | #include "sway/tree/arrange.h" | 8 | #include "sway/tree/arrange.h" |
@@ -67,6 +68,7 @@ static void handle_button(struct sway_seat *seat, uint32_t time_msec, | |||
67 | arrange_workspace(e->v_con->workspace); | 68 | arrange_workspace(e->v_con->workspace); |
68 | } | 69 | } |
69 | } | 70 | } |
71 | transaction_commit_dirty(); | ||
70 | seatop_begin_default(seat); | 72 | seatop_begin_default(seat); |
71 | } | 73 | } |
72 | } | 74 | } |
@@ -99,6 +101,7 @@ static void handle_pointer_motion(struct sway_seat *seat, uint32_t time_msec) { | |||
99 | if (amount_y != 0) { | 101 | if (amount_y != 0) { |
100 | container_resize_tiled(e->v_con, e->edge_y, amount_y); | 102 | container_resize_tiled(e->v_con, e->edge_y, amount_y); |
101 | } | 103 | } |
104 | transaction_commit_dirty(); | ||
102 | } | 105 | } |
103 | 106 | ||
104 | static void handle_unref(struct sway_seat *seat, struct sway_container *con) { | 107 | static void handle_unref(struct sway_seat *seat, struct sway_container *con) { |
@@ -158,5 +161,6 @@ void seatop_begin_resize_tiling(struct sway_seat *seat, | |||
158 | seat->seatop_impl = &seatop_impl; | 161 | seat->seatop_impl = &seatop_impl; |
159 | seat->seatop_data = e; | 162 | seat->seatop_data = e; |
160 | 163 | ||
164 | transaction_commit_dirty(); | ||
161 | wlr_seat_pointer_notify_clear_focus(seat->wlr_seat); | 165 | wlr_seat_pointer_notify_clear_focus(seat->wlr_seat); |
162 | } | 166 | } |