Wayland registry for tracking wayland globals.
More...
#include <KisWaylandRegistry.h>
Wayland registry for tracking wayland globals.
Definition at line 13 of file KisWaylandRegistry.h.
◆ KisWaylandRegistry()
| KisWaylandRegistry::KisWaylandRegistry |
( |
| ) |
|
◆ ~KisWaylandRegistry()
| KisWaylandRegistry::~KisWaylandRegistry |
( |
| ) |
|
◆ getOrCreate()
Definition at line 58 of file KisWaylandRegistry.cpp.
59{
60 if (!s_waylandRegistry->d->initialized) {
62 registry->
d->initialized =
true;
63
64 auto waylandApp = qGuiApp->nativeInterface<QNativeInterface::QWaylandApplication>();
65 auto display = waylandApp->display();
66 auto regisry = ::wl_display_get_registry(display);
67 registry->init(regisry);
68
69
70 ::wl_display_roundtrip(display);
71 }
72
73 return s_waylandRegistry;
74}
Wayland registry for tracking wayland globals.
References d.
◆ globalExists()
| bool KisWaylandRegistry::globalExists |
( |
const QString & | interface | ) |
|
Definition at line 32 of file KisWaylandRegistry.cpp.
33{
34 if (qEnvironmentVariable(
"KRITA_FORCE_WAYLAND_INTERFACES").
split(
u',').contains(interface)) {
35 return true;
36 }
37
38
39 static QStringList interfaceBlacklist = qEnvironmentVariable(
"QT_WAYLAND_DISABLED_INTERFACES").split(
u',');
40
41 if (interfaceBlacklist.contains(interface)) {
42 return false;
43 }
44
45 Q_FOREACH(
auto global,
d->globals.values()) {
46 if (global.first == interface)
47 return true;
48 }
49
50 return false;
51}
QList< KoSubpath * > split(const KoPathShape &path)
References d, and u.
◆ registry_global()
| void KisWaylandRegistry::registry_global |
( |
uint32_t | name, |
|
|
const QString & | interface, |
|
|
uint32_t | version ) |
|
overrideprotected |
Definition at line 27 of file KisWaylandRegistry.cpp.
28{
29 d->globals.insert(name, std::pair<QString, uint32_t>(interface, version));
30}
References d.
◆ registry_global_remove()
| void KisWaylandRegistry::registry_global_remove |
( |
uint32_t | name | ) |
|
|
overrideprotected |
| QScopedPointer<Private> KisWaylandRegistry::d |
|
private |
The documentation for this class was generated from the following files: