From 9e8aa3d206ab508aab66294feb800e9d143a45f1 Mon Sep 17 00:00:00 2001 From: Scott Moreau Date: Sun, 11 Aug 2024 00:02:05 -0600 Subject: [PATCH] transactions: Use correct geometry when adjusting for gravity It is apparent from the comment following this line, that this was the intention. This fixes a decoration sizing bug with ignore_views matching 'maximized is true'. This can be seen when toggling maximized for apps such as wcm. --- src/view/xdg-shell/xdg-toplevel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/view/xdg-shell/xdg-toplevel.cpp b/src/view/xdg-shell/xdg-toplevel.cpp index 5e279b797..955da38ca 100644 --- a/src/view/xdg-shell/xdg-toplevel.cpp +++ b/src/view/xdg-shell/xdg-toplevel.cpp @@ -201,7 +201,7 @@ void wf::xdg_toplevel_t::handle_surface_commit() return; } - adjust_geometry_for_gravity(_pending, toplevel_size); + adjust_geometry_for_gravity(_pending, wf::dimensions(pending().geometry)); LOGC(VIEWS, "Client-initiated resize to geometry ", pending().geometry); auto tx = wf::txn::transaction_t::create(); tx->add_object(shared_from_this());