diff options
Diffstat (limited to 'sway/desktop/xdg_shell_v6.c')
-rw-r--r-- | sway/desktop/xdg_shell_v6.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sway/desktop/xdg_shell_v6.c b/sway/desktop/xdg_shell_v6.c index 386e350e..a7ea163f 100644 --- a/sway/desktop/xdg_shell_v6.c +++ b/sway/desktop/xdg_shell_v6.c | |||
@@ -284,10 +284,9 @@ static void handle_commit(struct wl_listener *listener, void *data) { | |||
284 | wlr_xdg_surface_v6_get_geometry(xdg_surface_v6, &new_geo); | 284 | wlr_xdg_surface_v6_get_geometry(xdg_surface_v6, &new_geo); |
285 | struct sway_container *con = view->container; | 285 | struct sway_container *con = view->container; |
286 | 286 | ||
287 | if ((new_geo.width != con->content_width || | 287 | if ((new_geo.width != con->surface_width || |
288 | new_geo.height != con->content_height) && | 288 | new_geo.height != con->surface_height)) { |
289 | container_is_floating(con)) { | 289 | // The view has unexpectedly sent a new size |
290 | // A floating view has unexpectedly sent a new size | ||
291 | desktop_damage_view(view); | 290 | desktop_damage_view(view); |
292 | view_update_size(view, new_geo.width, new_geo.height); | 291 | view_update_size(view, new_geo.width, new_geo.height); |
293 | memcpy(&view->geometry, &new_geo, sizeof(struct wlr_box)); | 292 | memcpy(&view->geometry, &new_geo, sizeof(struct wlr_box)); |