KWin
|
#include <xdgforeign_v2.h>
Signals | |
void | transientChanged (KWin::SurfaceInterface *child, KWin::SurfaceInterface *parent) |
Public Member Functions | |
XdgForeignV2Interface (Display *display, QObject *parent=nullptr) | |
~XdgForeignV2Interface () override | |
SurfaceInterface * | transientFor (SurfaceInterface *surface) |
XdgExportedSurface * | exportSurface (SurfaceInterface *surface) |
Friends | |
class | XdgExporterV2Interface |
class | XdgImporterV2Interface |
This class encapsulates the server side logic of the XdgForeign protocol. a process can export a surface to be identifiable by a server-wide unique string handle, and another process can in turn import that surface, and set it as transient parent for one of its own surfaces. This parent relationship is traced by the transientChanged signal and the transientFor method.
Definition at line 44 of file xdgforeign_v2.h.
KWin::XdgForeignV2Interface::XdgForeignV2Interface | ( | Display * | display, |
QObject * | parent = nullptr ) |
Definition at line 49 of file xdgforeign_v2.cpp.
|
override |
Definition at line 55 of file xdgforeign_v2.cpp.
XdgExportedSurface * KWin::XdgForeignV2Interface::exportSurface | ( | SurfaceInterface * | surface | ) |
Exports the given surface without creating a Wayland interface object.
surface | The surface to export |
Definition at line 64 of file xdgforeign_v2.cpp.
|
signal |
A surface got a new imported transient parent
parent | is the surface exported by one client and imported into another, which will act as parent. |
child | is the surface that the importer client did set as child of the surface that it imported. If one of the two paramenters is nullptr, it means that a previously relation is not valid anymore and either one of the surfaces has been unmapped, or the parent surface is not exported anymore. |
SurfaceInterface * KWin::XdgForeignV2Interface::transientFor | ( | SurfaceInterface * | surface | ) |
If a client did import a surface and set one of its own as child of the imported one, this returns the mapping.
surface | the child surface we want to search an imported transientParent for. |
Definition at line 59 of file xdgforeign_v2.cpp.
|
friend |
Definition at line 79 of file xdgforeign_v2.h.
|
friend |
Definition at line 80 of file xdgforeign_v2.h.