diff options
author | 2023-08-28 10:45:43 -0500 | |
---|---|---|
committer | 2023-08-28 17:04:53 -0700 | |
commit | 60a94b491689632b89ccc1b83c321503ed434dac (patch) | |
tree | 830d52342ceabb1724d1ea9a671ccf7df37e6960 | |
parent | view: update wlr_toplevel size on client resizes (diff) | |
download | sway-60a94b491689632b89ccc1b83c321503ed434dac.tar.gz sway-60a94b491689632b89ccc1b83c321503ed434dac.tar.zst sway-60a94b491689632b89ccc1b83c321503ed434dac.zip |
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 bf44690ee8ce8438ffb1a84fbe6e8dbb6a851c04.
-rw-r--r-- | sway/tree/view.c | 5 |
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) { | |||
931 | con->pending.content_width = view->geometry.width; | 931 | con->pending.content_width = view->geometry.width; |
932 | con->pending.content_height = view->geometry.height; | 932 | con->pending.content_height = view->geometry.height; |
933 | container_set_geometry_from_content(con); | 933 | container_set_geometry_from_content(con); |
934 | |||
935 | // Update the next scheduled width/height so correct coordinates | ||
936 | // are sent on the next toplevel configure from wlroots. | ||
937 | wlr_xdg_toplevel_set_size(view->wlr_xdg_toplevel, view->geometry.width, | ||
938 | view->geometry.height); | ||
939 | } | 934 | } |
940 | 935 | ||
941 | void view_center_surface(struct sway_view *view) { | 936 | void view_center_surface(struct sway_view *view) { |