49 #ifdef QT_WAYLAND_WINDOWMANAGER_SUPPORT 53 #include <QCoreApplication> 54 #include <QtGui/QWidget> 55 #include <QtGui/QWindowSystemInterface> 64 , mWaitingForFrameSync(false)
69 #ifdef QT_WAYLAND_WINDOWMANAGER_SUPPORT 70 mDisplay->windowManagerIntegration()->mapClientToProcess(
qApp->applicationPid());
71 mDisplay->windowManagerIntegration()->authenticateWithToken();
81 for (
int i = 0; i < inputDevices.
size(); ++i)
93 qWarning(
"Sub window is not supported");
110 int32_t x, int32_t y,
111 int32_t width, int32_t height)
void configure(uint32_t time, uint32_t edges, int32_t x, int32_t y, int32_t width, int32_t height)
struct wl_surface * wl_surface() const
struct wl_surface * mSurface
int width() const
Returns the width of the rectangle.
void blockingReadEvents()
int height() const
Returns the height of the rectangle.
int width() const
Returns the width.
Q_GUI_EXPORT EGLDisplay display()
void frameCallback(wl_display_frame_func_t func, struct wl_surface *surface, void *data)
const T & at(int i) const
Returns the item at index position i in the list.
struct wl_surface * createSurface(void *handle)
Q_CORE_EXPORT void qWarning(const char *,...)
static const char * data(const QByteArray &arr)
void setParent(const QPlatformWindow *parent)
This function is called to enable native child widgets in QPA.
void attach(QWaylandBuffer *buffer)
QWaylandWindow(QWidget *window)
WId winId() const
Reimplement in subclasses to return a handle to the native window.
bool mWaitingForFrameSync
int y() const
Returns the y-coordinate of the rectangle's top edge.
void setVisible(bool visible)
Reimplemented in subclasses to show the surface if visible is true, and hide it if visible is false...
static void frameCallback(struct wl_surface *surface, void *data, uint32_t time)
int x() const
Returns the x-coordinate of the rectangle's left edge.
int size() const
Returns the number of items in the list.
static void handleGeometryChange(QWidget *w, const QRect &newRect)
int height() const
Returns the height.
The QRect class defines a rectangle in the plane using integer precision.
virtual QSize size() const =0
QWaylandDisplay * mDisplay
void damage(const QRect &rect)
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
QList< QWaylandInputDevice * > inputDevices() const
virtual void newSurfaceCreated()
The QList class is a template class that provides lists.