Make sure we send a valid initial resize
Change-Id: Ib9a0152f83af433354d32ef4a8a233e5551ded8c Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
This commit is contained in:
parent
6723e2148d
commit
322bc6a377
@ -208,7 +208,7 @@ void QWaylandWindow::setGeometry(const QRect &rect)
|
||||
{
|
||||
setGeometry_helper(rect);
|
||||
|
||||
if (window()->isVisible()) {
|
||||
if (window()->isVisible() && rect.isValid()) {
|
||||
if (mWindowDecoration)
|
||||
mWindowDecoration->update();
|
||||
|
||||
@ -336,7 +336,7 @@ void QWaylandWindow::requestResize()
|
||||
{
|
||||
QMutexLocker lock(&mResizeLock);
|
||||
|
||||
if (mCanResize) {
|
||||
if (mCanResize || !mSentInitialResize) {
|
||||
doResize();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user