Merge branch 'Plasma/5.8'
This commit is contained in:
commit
2619ddf02e
2 changed files with 2 additions and 1 deletions
|
@ -1147,7 +1147,7 @@ QSize AbstractClient::sizeForClientSize(const QSize &wsize, Sizemode mode, bool
|
||||||
{
|
{
|
||||||
Q_UNUSED(mode)
|
Q_UNUSED(mode)
|
||||||
Q_UNUSED(noframe)
|
Q_UNUSED(noframe)
|
||||||
return wsize;
|
return wsize + QSize(borderLeft() + borderRight(), borderTop() + borderBottom());
|
||||||
}
|
}
|
||||||
|
|
||||||
void AbstractClient::addRepaintDuringGeometryUpdates()
|
void AbstractClient::addRepaintDuringGeometryUpdates()
|
||||||
|
|
|
@ -346,6 +346,7 @@ void TestShellClient::testFullscreen()
|
||||||
QVERIFY(!c->isFullScreen());
|
QVERIFY(!c->isFullScreen());
|
||||||
QCOMPARE(c->clientSize(), QSize(100, 50));
|
QCOMPARE(c->clientSize(), QSize(100, 50));
|
||||||
QCOMPARE(c->isDecorated(), decoMode == ServerSideDecoration::Mode::Server);
|
QCOMPARE(c->isDecorated(), decoMode == ServerSideDecoration::Mode::Server);
|
||||||
|
QCOMPARE(c->sizeForClientSize(c->clientSize()), c->geometry().size());
|
||||||
QSignalSpy fullscreenChangedSpy(c, &ShellClient::fullScreenChanged);
|
QSignalSpy fullscreenChangedSpy(c, &ShellClient::fullScreenChanged);
|
||||||
QVERIFY(fullscreenChangedSpy.isValid());
|
QVERIFY(fullscreenChangedSpy.isValid());
|
||||||
QSignalSpy geometryChangedSpy(c, &ShellClient::geometryChanged);
|
QSignalSpy geometryChangedSpy(c, &ShellClient::geometryChanged);
|
||||||
|
|
Loading…
Reference in a new issue