mirror of
https://github.com/swaywm/sway.git
synced 2024-11-22 07:51:28 +00:00
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 bf44690ee8
.
This commit is contained in:
parent
bf44690ee8
commit
60a94b4916
|
@ -931,11 +931,6 @@ void view_update_size(struct sway_view *view) {
|
||||||
con->pending.content_width = view->geometry.width;
|
con->pending.content_width = view->geometry.width;
|
||||||
con->pending.content_height = view->geometry.height;
|
con->pending.content_height = view->geometry.height;
|
||||||
container_set_geometry_from_content(con);
|
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) {
|
void view_center_surface(struct sway_view *view) {
|
||||||
|
|
Loading…
Reference in a new issue