13#include <qwayland-server-xdg-foreign-unstable-v2.h>
19class XdgExportedV2Interface;
20class XdgImportedV2Interface;
21class XdgImporterV2Interface;
22class XdgExporterV2Interface;
30 std::unique_ptr<XdgExporterV2Interface>
exporter;
31 std::unique_ptr<XdgImporterV2Interface>
importer;
51 QHash<QString, XdgExportedSurface *> m_exportedSurfaces;
72 QHash<SurfaceInterface *, XdgImportedV2Interface *> m_parents;
73 QHash<XdgImportedV2Interface *, SurfaceInterface *> m_children;
111 void handleExportedDestroyed();
115 QPointer<SurfaceInterface> m_child;
Class holding the Wayland server display loop.
Resource representing a wl_surface.
void zxdg_imported_v2_destroy(Resource *resource) override
void zxdg_imported_v2_destroy_resource(Resource *resource) override
XdgDummyImportedV2Interface(wl_resource *resource)
SurfaceInterface * surface() const
XdgExportedV2Interface(SurfaceInterface *surface, wl_resource *resource)
void zxdg_exported_v2_destroy_resource(Resource *resource) override
void zxdg_exported_v2_destroy(Resource *resource) override
void zxdg_exporter_v2_destroy(Resource *resource) override
XdgExportedSurface * exportSurface(SurfaceInterface *surface)
XdgExporterV2Interface(Display *display, XdgForeignV2Interface *foreign)
void zxdg_exporter_v2_export_toplevel(Resource *resource, uint32_t id, wl_resource *surface) override
XdgExportedSurface * exportedSurface(const QString &handle) const
std::unique_ptr< XdgExporterV2Interface > exporter
std::unique_ptr< XdgImporterV2Interface > importer
XdgForeignV2InterfacePrivate(Display *display, XdgForeignV2Interface *q)
XdgForeignV2Interface * q
void zxdg_imported_v2_destroy(Resource *resource) override
SurfaceInterface * surface() const
void zxdg_imported_v2_destroy_resource(Resource *resource) override
void zxdg_imported_v2_set_parent_of(Resource *resource, wl_resource *surface) override
void childChanged(KWin::SurfaceInterface *child)
SurfaceInterface * child() const
XdgImportedV2Interface(XdgExportedSurface *exported, wl_resource *resource)
void zxdg_importer_v2_import_toplevel(Resource *resource, uint32_t id, const QString &handle) override
void zxdg_importer_v2_destroy(Resource *resource) override
XdgImporterV2Interface(Display *display, XdgForeignV2Interface *foreign)
void link(XdgImportedV2Interface *parent, SurfaceInterface *child)
void unlink(XdgImportedV2Interface *parent, SurfaceInterface *child)
SurfaceInterface * transientFor(SurfaceInterface *surface)