Merge branch 'Plasma/5.8'

This commit is contained in:
Martin Gräßlin 2016-11-18 16:08:29 +01:00
commit 2619ddf02e
2 changed files with 2 additions and 1 deletions

View file

@ -1147,7 +1147,7 @@ QSize AbstractClient::sizeForClientSize(const QSize &wsize, Sizemode mode, bool
{
Q_UNUSED(mode)
Q_UNUSED(noframe)
return wsize;
return wsize + QSize(borderLeft() + borderRight(), borderTop() + borderBottom());
}
void AbstractClient::addRepaintDuringGeometryUpdates()

View file

@ -346,6 +346,7 @@ void TestShellClient::testFullscreen()
QVERIFY(!c->isFullScreen());
QCOMPARE(c->clientSize(), QSize(100, 50));
QCOMPARE(c->isDecorated(), decoMode == ServerSideDecoration::Mode::Server);
QCOMPARE(c->sizeForClientSize(c->clientSize()), c->geometry().size());
QSignalSpy fullscreenChangedSpy(c, &ShellClient::fullScreenChanged);
QVERIFY(fullscreenChangedSpy.isValid());
QSignalSpy geometryChangedSpy(c, &ShellClient::geometryChanged);