Port the remaining usages of Screens::geometry(i) in Workspace to AbstractOutput
This commit is contained in:
parent
9bf6e2bd68
commit
cbaf39e270
1 changed files with 8 additions and 6 deletions
|
@ -2090,10 +2090,11 @@ void Workspace::saveOldScreenSizes()
|
||||||
{
|
{
|
||||||
olddisplaysize = m_geometry.size();
|
olddisplaysize = m_geometry.size();
|
||||||
oldscreensizes.clear();
|
oldscreensizes.clear();
|
||||||
for( int i = 0;
|
|
||||||
i < screens()->count();
|
const auto outputs = kwinApp()->platform()->enabledOutputs();
|
||||||
++i )
|
for (const AbstractOutput *output : outputs) {
|
||||||
oldscreensizes.append( screens()->geometry( i ));
|
oldscreensizes.append(output->geometry());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -2110,8 +2111,9 @@ static bool hasOffscreenXineramaStrut(AbstractClient *client)
|
||||||
region += client->strutRect(StrutAreaLeft);
|
region += client->strutRect(StrutAreaLeft);
|
||||||
|
|
||||||
// Remove all visible areas so that only the invisible remain
|
// Remove all visible areas so that only the invisible remain
|
||||||
for (int i = 0; i < screens()->count(); i ++) {
|
const auto outputs = kwinApp()->platform()->enabledOutputs();
|
||||||
region -= screens()->geometry(i);
|
for (const AbstractOutput *output : outputs) {
|
||||||
|
region -= output->geometry();
|
||||||
}
|
}
|
||||||
|
|
||||||
// If there's anything left then we have an offscreen strut
|
// If there's anything left then we have an offscreen strut
|
||||||
|
|
Loading…
Reference in a new issue