aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop/xwayland.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/desktop/xwayland.c')
-rw-r--r--sway/desktop/xwayland.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sway/desktop/xwayland.c b/sway/desktop/xwayland.c
index d9e1b0a9..e0d307e8 100644
--- a/sway/desktop/xwayland.c
+++ b/sway/desktop/xwayland.c
@@ -333,10 +333,9 @@ static void handle_commit(struct wl_listener *listener, void *data) {
333 get_geometry(view, &new_geo); 333 get_geometry(view, &new_geo);
334 struct sway_container *con = view->container; 334 struct sway_container *con = view->container;
335 335
336 if ((new_geo.width != con->content_width || 336 if ((new_geo.width != con->surface_width ||
337 new_geo.height != con->content_height) && 337 new_geo.height != con->surface_height)) {
338 container_is_floating(con)) { 338 // The view has unexpectedly sent a new size
339 // A floating view has unexpectedly sent a new size
340 // eg. The Firefox "Save As" dialog when downloading a file 339 // eg. The Firefox "Save As" dialog when downloading a file
341 desktop_damage_view(view); 340 desktop_damage_view(view);
342 view_update_size(view, new_geo.width, new_geo.height); 341 view_update_size(view, new_geo.width, new_geo.height);