8#include <QtGui/QGuiApplication>
32 if (
auto *
s = QtWayland::wl_surface::fromObject(surface))
37void QWaylandSurface::handleScreenRemoved(
QScreen *qScreen)
39 auto *platformScreen = qScreen->
handle();
40 if (platformScreen->isPlaceholder())
57 <<
"Ignoring unexpected wl_surface.enter received for output with id:"
58 << wl_proxy_get_id(
reinterpret_cast<wl_proxy *
>(
output))
59 <<
"screen name:" << addedScreen->name() <<
"screen model:" << addedScreen->model()
60 <<
"This is most likely a bug in the compositor.";
75 bool wasRemoved =
m_screens.removeOne(removedScreen);
78 <<
"Ignoring unexpected wl_surface.leave received for output with id:"
79 << wl_proxy_get_id(
reinterpret_cast<wl_proxy *
>(
output))
80 <<
"screen name:" << removedScreen->name()
81 <<
"screen model:" << removedScreen->model()
82 <<
"This is most likely a bug in the compositor.";
92#include "moc_qwaylandsurface_p.cpp"
void screenRemoved(QScreen *screen)
This signal is emitted whenever a screen is removed from the system.
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
\threadsafe
The QScreen class is used to query screen properties. \inmodule QtGui.
QPlatformScreen * handle() const
Get the platform screen handle.
QWaylandSurface()
Constructs a an uninitialized QWaylandSurface.
static QWaylandScreen * fromWlOutput(::wl_output *output)
QList< QWaylandScreen * > m_screens
void surface_enter(struct ::wl_output *output) override
~QWaylandSurface() override
void surface_leave(struct ::wl_output *output) override
QWaylandScreen * oldestEnteredScreen()
static QWaylandSurface * fromWlSurface(::wl_surface *surface)
struct wl_display * display
Combined button and popup list for selecting options.
#define qCWarning(category,...)
QT_BEGIN_NAMESPACE typedef uchar * output