aboutsummaryrefslogtreecommitdiff
path: root/sway/desktop/xdg_shell.c
diff options
context:
space:
mode:
authorKenny Levinsen <kl@kl.wtf>2020-06-03 14:39:12 +0200
committerSimon Ser <contact@emersion.fr>2020-06-03 16:41:17 +0200
commit5a4a7bc0dad1bb07312f41d6cce9b5a6fc8d884d (patch)
tree26824b89fe15a3ffc4876d1dba6a6c4ca99866a8 /sway/desktop/xdg_shell.c
parent7670f1a521e6eacf41385324eba7cc453de9942c (diff)
container: Remove useless surface dimensions
The adjustments to resize logic left them unnecessary.
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) {
} else {
struct wlr_box new_geo;
wlr_xdg_surface_get_geometry(xdg_surface, &new_geo);
- struct sway_container *con = view->container;
- if ((new_geo.width != con->surface_width ||
- new_geo.height != con->surface_height)) {
+ if ((new_geo.width != view->geometry.width ||
+ new_geo.height != view->geometry.height)) {
// The view has unexpectedly sent a new size
desktop_damage_view(view);
view_update_size(view, new_geo.width, new_geo.height);