Workspace: only calculate the clientArea for the wayland window when necessary
No need to calculate it just to discard it. Signed-off-by: Victoria Fischer <victoria.fischer@mbition.io>
This commit is contained in:
parent
7916352f5b
commit
04643fa3d8
1 changed files with 1 additions and 1 deletions
|
@ -799,7 +799,6 @@ void Workspace::addWaylandWindow(Window *window)
|
|||
window->updateLayer();
|
||||
|
||||
if (window->isPlaceable()) {
|
||||
const QRectF area = clientArea(PlacementArea, window, activeOutput());
|
||||
bool placementDone = false;
|
||||
if (window->isRequestedFullScreen()) {
|
||||
placementDone = true;
|
||||
|
@ -811,6 +810,7 @@ void Workspace::addWaylandWindow(Window *window)
|
|||
placementDone = true;
|
||||
}
|
||||
if (!placementDone) {
|
||||
const QRectF area = clientArea(PlacementArea, window, activeOutput());
|
||||
m_placement->place(window, area);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue