aboutsummaryrefslogtreecommitdiff
path: root/rootston/xdg_shell.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-08-06 08:11:06 -0400
committerGitHub <noreply@github.com>2018-08-06 08:11:06 -0400
commit28b0a4065b8d37b5301fb75377f1859b1b08af0b (patch)
tree3b51cc558ee9e86699e3b7282592b3ae5e652a48 /rootston/xdg_shell.c
parent84e87be6df2e43992d5608eb29966d7e0baef4f7 (diff)
parent9d0e37f768f49211eddfeba1abd35c1a2ccaa843 (diff)
Merge pull request #1179 from emersion/rootston-toggle-decoration-mode
rootston: add keybinding to toggle decoration mode
Diffstat (limited to 'rootston/xdg_shell.c')
-rw-r--r--rootston/xdg_shell.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/rootston/xdg_shell.c b/rootston/xdg_shell.c
index e5ab9efd..fed9afcd 100644
--- a/rootston/xdg_shell.c
+++ b/rootston/xdg_shell.c
@@ -475,6 +475,7 @@ static void decoration_handle_destroy(struct wl_listener *listener,
struct roots_xdg_toplevel_decoration *decoration =
wl_container_of(listener, decoration, destroy);
+ decoration->surface->xdg_toplevel_decoration = NULL;
view_update_decorated(decoration->surface->view, false);
wl_list_remove(&decoration->destroy.link);
wl_list_remove(&decoration->request_mode.link);
@@ -523,6 +524,7 @@ void handle_xdg_toplevel_decoration(struct wl_listener *listener, void *data) {
}
decoration->wlr_decoration = wlr_decoration;
decoration->surface = xdg_surface;
+ xdg_surface->xdg_toplevel_decoration = decoration;
decoration->destroy.notify = decoration_handle_destroy;
wl_signal_add(&wlr_decoration->events.destroy, &decoration->destroy);