summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2023-08-28 10:45:43 -0500
committerFurkan Sahin <furkan-dev@proton.me>2023-08-28 10:45:43 -0500
commit8581a684a6860d9f4a58c15494b16a5570cec4e7 (patch)
tree830d52342ceabb1724d1ea9a671ccf7df37e6960
parent7bbcf20ded00b4d661fe6a4843cdeb230873018a (diff)
Revert "view: update wlr_toplevel size on client resizes"
This isn't the right fix for this issue because the xwayland code also uses this function and updating the wlr_toplevel there doesn't make sense and also causes problems. Fixes #7722. This reverts commit 7bbcf20ded00b4d661fe6a4843cdeb230873018a.
-rw-r--r--sway/tree/view.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/sway/tree/view.c b/sway/tree/view.c
index 8cc94a05..ec54fed8 100644
--- a/sway/tree/view.c
+++ b/sway/tree/view.c
@@ -931,11 +931,6 @@ void view_update_size(struct sway_view *view) {
con->pending.content_width = view->geometry.width;
con->pending.content_height = view->geometry.height;
container_set_geometry_from_content(con);
-
- // Update the next scheduled width/height so correct coordinates
- // are sent on the next toplevel configure from wlroots.
- wlr_xdg_toplevel_set_size(view->wlr_xdg_toplevel, view->geometry.width,
- view->geometry.height);
}
void view_center_surface(struct sway_view *view) {