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.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sway/desktop/xwayland.c b/sway/desktop/xwayland.c
index 4bf5b6b8..b51bbb74 100644
--- a/sway/desktop/xwayland.c
+++ b/sway/desktop/xwayland.c
@@ -371,10 +371,9 @@ static void handle_commit(struct wl_listener *listener, void *data) {
371 } else { 371 } else {
372 struct wlr_box new_geo; 372 struct wlr_box new_geo;
373 get_geometry(view, &new_geo); 373 get_geometry(view, &new_geo);
374 struct sway_container *con = view->container;
375 374
376 if ((new_geo.width != con->surface_width || 375 if ((new_geo.width != view->geometry.width ||
377 new_geo.height != con->surface_height)) { 376 new_geo.height != view->geometry.height)) {
378 // The view has unexpectedly sent a new size 377 // The view has unexpectedly sent a new size
379 // eg. The Firefox "Save As" dialog when downloading a file 378 // eg. The Firefox "Save As" dialog when downloading a file
380 desktop_damage_view(view); 379 desktop_damage_view(view);