mirror of
https://github.com/swaywm/sway.git
synced 2026-04-26 06:46:26 -04:00
container: Remove useless surface dimensions
The adjustments to resize logic left them unnecessary.
This commit is contained in:
parent
7670f1a521
commit
5a4a7bc0da
6 changed files with 8 additions and 15 deletions
|
|
@ -282,10 +282,9 @@ static void handle_commit(struct wl_listener *listener, void *data) {
|
|||
} else {
|
||||
struct wlr_box new_geo;
|
||||
wlr_xdg_surface_get_geometry(xdg_surface, &new_geo);
|
||||
struct sway_container *con = view->container;
|
||||
|
||||
if ((new_geo.width != con->surface_width ||
|
||||
new_geo.height != con->surface_height)) {
|
||||
if ((new_geo.width != view->geometry.width ||
|
||||
new_geo.height != view->geometry.height)) {
|
||||
// The view has unexpectedly sent a new size
|
||||
desktop_damage_view(view);
|
||||
view_update_size(view, new_geo.width, new_geo.height);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue