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.
This commit is contained in:
parent
510a41eeb8
commit
08d18503e3
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue