summaryrefslogtreecommitdiffstats
path: root/sway/desktop/xdg_shell.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/desktop/xdg_shell.c')
-rw-r--r--sway/desktop/xdg_shell.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sway/desktop/xdg_shell.c b/sway/desktop/xdg_shell.c
index 01574577..7775f660 100644
--- a/sway/desktop/xdg_shell.c
+++ b/sway/desktop/xdg_shell.c
@@ -282,10 +282,9 @@ static void handle_commit(struct wl_listener *listener, void *data) {
282 } else { 282 } else {
283 struct wlr_box new_geo; 283 struct wlr_box new_geo;
284 wlr_xdg_surface_get_geometry(xdg_surface, &new_geo); 284 wlr_xdg_surface_get_geometry(xdg_surface, &new_geo);
285 struct sway_container *con = view->container;
286 285
287 if ((new_geo.width != con->surface_width || 286 if ((new_geo.width != view->geometry.width ||
288 new_geo.height != con->surface_height)) { 287 new_geo.height != view->geometry.height)) {
289 // The view has unexpectedly sent a new size 288 // The view has unexpectedly sent a new size
290 desktop_damage_view(view); 289 desktop_damage_view(view);
291 view_update_size(view, new_geo.width, new_geo.height); 290 view_update_size(view, new_geo.width, new_geo.height);