Commit 08d18503 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii Committed by Marco Martin
Browse files

Use output property in Workspace::clientArea()

Since the Toplevel.output property is properly synchronized with the
frame geometry, Workspace::clientArea() can use the output property
instead of looking up the screen. It makes code intuitive and removes
unnecessary lookups.
parent 510a41ee
Pipeline #161268 passed with stage
in 43 minutes and 1 second
......@@ -2324,7 +2324,7 @@ QRect Workspace::clientArea(clientAreaOption opt, const AbstractOutput *output,
QRect Workspace::clientArea(clientAreaOption opt, const Toplevel *window) const
{
return clientArea(opt, window, window->frameGeometry().center());
return clientArea(opt, window, window->output());
}
QRect Workspace::clientArea(clientAreaOption opt, const Toplevel *window, const AbstractOutput *output) const
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment