aboutsummaryrefslogtreecommitdiff
path: root/sway/desktop/xdg_shell_v6.c
diff options
context:
space:
mode:
authorRyan Dwyer <ryandwyer1@gmail.com>2018-06-27 17:46:03 +1000
committerRyan Dwyer <ryandwyer1@gmail.com>2018-06-27 17:46:03 +1000
commitbe86d3aba602fef7b51fafa8a6e7a39d1e49817f (patch)
treeba4e3debd236eb39337cd4f59772b2eaf260195f /sway/desktop/xdg_shell_v6.c
parent61c118768564eec07ac16494d90f567e75ea60cf (diff)
Remove transaction_add_damage
Instead, damage each container when applying the transaction.
Diffstat (limited to 'sway/desktop/xdg_shell_v6.c')
-rw-r--r--sway/desktop/xdg_shell_v6.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sway/desktop/xdg_shell_v6.c b/sway/desktop/xdg_shell_v6.c
index da2eda7a..6042a806 100644
--- a/sway/desktop/xdg_shell_v6.c
+++ b/sway/desktop/xdg_shell_v6.c
@@ -267,10 +267,7 @@ static void handle_request_fullscreen(struct wl_listener *listener, void *data)
view_set_fullscreen(view, e->fullscreen);
struct sway_container *ws = container_parent(view->swayc, C_WORKSPACE);
- struct sway_transaction *transaction = transaction_create();
- arrange_windows(ws, transaction);
- transaction_add_damage(transaction, container_get_box(ws->parent));
- transaction_commit(transaction);
+ arrange_and_commit(ws);
}
void handle_xdg_shell_v6_surface(struct wl_listener *listener, void *data) {