aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop/xdg_shell_v6.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/desktop/xdg_shell_v6.c')
-rw-r--r--sway/desktop/xdg_shell_v6.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sway/desktop/xdg_shell_v6.c b/sway/desktop/xdg_shell_v6.c
index 01f38d16..68abc120 100644
--- a/sway/desktop/xdg_shell_v6.c
+++ b/sway/desktop/xdg_shell_v6.c
@@ -76,6 +76,7 @@ static void handle_commit(struct wl_listener *listener, void *data) {
76 // TODO: Let floating views do whatever 76 // TODO: Let floating views do whatever
77 view->width = sway_surface->pending_width; 77 view->width = sway_surface->pending_width;
78 view->height = sway_surface->pending_height; 78 view->height = sway_surface->pending_height;
79 view_damage_from(view);
79} 80}
80 81
81static void handle_destroy(struct wl_listener *listener, void *data) { 82static void handle_destroy(struct wl_listener *listener, void *data) {
@@ -123,12 +124,12 @@ void handle_xdg_shell_v6_surface(struct wl_listener *listener, void *data) {
123 sway_view->sway_xdg_surface_v6 = sway_surface; 124 sway_view->sway_xdg_surface_v6 = sway_surface;
124 sway_view->surface = xdg_surface->surface; 125 sway_view->surface = xdg_surface->surface;
125 sway_surface->view = sway_view; 126 sway_surface->view = sway_view;
126 127
127 // TODO: 128 // TODO:
128 // - Look up pid and open on appropriate workspace 129 // - Look up pid and open on appropriate workspace
129 // - Set new view to maximized so it behaves nicely 130 // - Set new view to maximized so it behaves nicely
130 // - Criteria 131 // - Criteria
131 132
132 sway_surface->commit.notify = handle_commit; 133 sway_surface->commit.notify = handle_commit;
133 wl_signal_add(&xdg_surface->surface->events.commit, &sway_surface->commit); 134 wl_signal_add(&xdg_surface->surface->events.commit, &sway_surface->commit);
134 135