Skip to content

Commit

Permalink
Revert "view: update wlr_toplevel size on client resizes"
Browse files Browse the repository at this point in the history
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 bf44690.
  • Loading branch information
Dudemanguy authored and rpigott committed Aug 29, 2023
1 parent bf44690 commit 60a94b4
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions sway/tree/view.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 60a94b4

Please sign in to comment.