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());