diff options
author | Kenny Levinsen <kl@kl.wtf> | 2020-06-03 14:39:12 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-06-03 16:41:17 +0200 |
commit | 5a4a7bc0dad1bb07312f41d6cce9b5a6fc8d884d (patch) | |
tree | 26824b89fe15a3ffc4876d1dba6a6c4ca99866a8 /sway/desktop/xdg_shell.c | |
parent | transaction: Improve transaction commentary (diff) | |
download | sway-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/xdg_shell.c')
-rw-r--r-- | sway/desktop/xdg_shell.c | 5 |
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) { | |||
282 | } else { | 282 | } else { |
283 | struct wlr_box new_geo; | 283 | struct wlr_box new_geo; |
284 | wlr_xdg_surface_get_geometry(xdg_surface, &new_geo); | 284 | wlr_xdg_surface_get_geometry(xdg_surface, &new_geo); |
285 | struct sway_container *con = view->container; | ||
286 | 285 | ||
287 | if ((new_geo.width != con->surface_width || | 286 | if ((new_geo.width != view->geometry.width || |
288 | new_geo.height != con->surface_height)) { | 287 | new_geo.height != view->geometry.height)) { |
289 | // The view has unexpectedly sent a new size | 288 | // The view has unexpectedly sent a new size |
290 | desktop_damage_view(view); | 289 | desktop_damage_view(view); |
291 | view_update_size(view, new_geo.width, new_geo.height); | 290 | view_update_size(view, new_geo.width, new_geo.height); |