summaryrefslogtreecommitdiffstats
path: root/sway/desktop/xwayland.c
diff options
context:
space:
mode:
authorLibravatar Kenny Levinsen <kl@kl.wtf>2020-06-03 14:39:12 +0200
committerLibravatar Simon Ser <contact@emersion.fr>2020-06-03 16:41:17 +0200
commit5a4a7bc0dad1bb07312f41d6cce9b5a6fc8d884d (patch)
tree26824b89fe15a3ffc4876d1dba6a6c4ca99866a8 /sway/desktop/xwayland.c
parenttransaction: Improve transaction commentary (diff)
downloadsway-5a4a7bc0dad1bb07312f41d6cce9b5a6fc8d884d.tar.gz
sway-5a4a7bc0dad1bb07312f41d6cce9b5a6fc8d884d.tar.zst
sway-5a4a7bc0dad1bb07312f41d6cce9b5a6fc8d884d.zip
container: Remove useless surface dimensions
The adjustments to resize logic left them unnecessary.
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);