Use precomputed workspace geometry in Workspace::initializeX11()
When initializeX11() is called, the workspace geometry is known, so it doesn't need to be computed again.
This commit is contained in:
parent
e198727e15
commit
1b2e8437ac
1 changed files with 3 additions and 6 deletions
|
@ -402,13 +402,10 @@ void Workspace::initializeX11()
|
|||
NETPoint* viewports = new NETPoint[VirtualDesktopManager::self()->count()];
|
||||
rootInfo->setDesktopViewport(VirtualDesktopManager::self()->count(), *viewports);
|
||||
delete[] viewports;
|
||||
QRect geom;
|
||||
for (int i = 0; i < screens()->count(); i++) {
|
||||
geom |= screens()->geometry(i);
|
||||
}
|
||||
|
||||
NETSize desktop_geometry;
|
||||
desktop_geometry.width = geom.width();
|
||||
desktop_geometry.height = geom.height();
|
||||
desktop_geometry.width = m_geometry.width();
|
||||
desktop_geometry.height = m_geometry.height();
|
||||
rootInfo->setDesktopGeometry(desktop_geometry);
|
||||
setShowingDesktop(false);
|
||||
|
||||
|
|
Loading…
Reference in a new issue