Don't depend on shell extension
The mininimal-cpp compositor example does not have any shell extensions. Change-Id: I925450a75ab6f93245ca9897bbc6f092d93364b6 Reviewed-by: Johan Helsing <johan.helsing@qt.io>
This commit is contained in:
parent
b0f57f5e31
commit
13a861ede8
@ -145,9 +145,7 @@ void QWaylandWindow::initWindow()
|
||||
Q_ASSERT(!mShellSurface);
|
||||
|
||||
mShellSurface = mDisplay->createShellSurface(this);
|
||||
if (!mShellSurface)
|
||||
qFatal("Could not create a shell surface object.");
|
||||
|
||||
if (mShellSurface) {
|
||||
mShellSurface->setType(window()->type(), transientParent());
|
||||
|
||||
// Set initial surface title
|
||||
@ -186,6 +184,9 @@ void QWaylandWindow::initWindow()
|
||||
// the user may have already set some window properties, so make sure to send them out
|
||||
for (auto it = m_properties.cbegin(); it != m_properties.cend(); ++it)
|
||||
mShellSurface->sendProperty(it.key(), it.value());
|
||||
} else {
|
||||
qWarning("Could not create a shell surface object.");
|
||||
}
|
||||
}
|
||||
|
||||
// Enable high-dpi rendering. Scale() returns the screen scale factor and will
|
||||
@ -327,7 +328,7 @@ void QWaylandWindow::setGeometry(const QRect &rect)
|
||||
|
||||
void QWaylandWindow::sendExposeEvent(const QRect &rect)
|
||||
{
|
||||
if (mShellSurface && !mShellSurface->handleExpose(rect))
|
||||
if (!(mShellSurface && mShellSurface->handleExpose(rect)))
|
||||
QWindowSystemInterface::handleExposeEvent(window(), rect);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user