Changeset View
Changeset View
Standalone View
Standalone View
src/client/registry.cpp
Show First 20 Lines • Show All 72 Lines • ▼ Show 20 Line(s) | |||||
73 | #include <wayland-org_kde_kwin_outputdevice-client-protocol.h> | 73 | #include <wayland-org_kde_kwin_outputdevice-client-protocol.h> | ||
74 | #include <wayland-blur-client-protocol.h> | 74 | #include <wayland-blur-client-protocol.h> | ||
75 | #include <wayland-contrast-client-protocol.h> | 75 | #include <wayland-contrast-client-protocol.h> | ||
76 | #include <wayland-slide-client-protocol.h> | 76 | #include <wayland-slide-client-protocol.h> | ||
77 | #include <wayland-dpms-client-protocol.h> | 77 | #include <wayland-dpms-client-protocol.h> | ||
78 | #include <wayland-server-decoration-client-protocol.h> | 78 | #include <wayland-server-decoration-client-protocol.h> | ||
79 | #include <wayland-text-input-v0-client-protocol.h> | 79 | #include <wayland-text-input-v0-client-protocol.h> | ||
80 | #include <wayland-text-input-v2-client-protocol.h> | 80 | #include <wayland-text-input-v2-client-protocol.h> | ||
81 | #include <wayland-text-input-v3-client-protocol.h> | ||||
81 | #include "../compat/wayland-xdg-shell-v5-client-protocol.h" | 82 | #include "../compat/wayland-xdg-shell-v5-client-protocol.h" | ||
82 | #include <wayland-xdg-shell-v6-client-protocol.h> | 83 | #include <wayland-xdg-shell-v6-client-protocol.h> | ||
83 | #include <wayland-xdg-shell-client-protocol.h> | 84 | #include <wayland-xdg-shell-client-protocol.h> | ||
84 | #include <wayland-relativepointer-unstable-v1-client-protocol.h> | 85 | #include <wayland-relativepointer-unstable-v1-client-protocol.h> | ||
85 | #include <wayland-pointer-gestures-unstable-v1-client-protocol.h> | 86 | #include <wayland-pointer-gestures-unstable-v1-client-protocol.h> | ||
86 | #include <wayland-pointer-constraints-unstable-v1-client-protocol.h> | 87 | #include <wayland-pointer-constraints-unstable-v1-client-protocol.h> | ||
87 | #include <wayland-xdg-foreign-unstable-v2-client-protocol.h> | 88 | #include <wayland-xdg-foreign-unstable-v2-client-protocol.h> | ||
88 | #include <wayland-appmenu-client-protocol.h> | 89 | #include <wayland-appmenu-client-protocol.h> | ||
▲ Show 20 Lines • Show All 190 Lines • ▼ Show 20 Line(s) | 119 | static const QMap<Registry::Interface, SuppertedInterfaceData> s_interfaces = { | |||
279 | }}, | 280 | }}, | ||
280 | {Registry::Interface::TextInputManagerUnstableV2, { | 281 | {Registry::Interface::TextInputManagerUnstableV2, { | ||
281 | 1, | 282 | 1, | ||
282 | QByteArrayLiteral("zwp_text_input_manager_v2"), | 283 | QByteArrayLiteral("zwp_text_input_manager_v2"), | ||
283 | &zwp_text_input_manager_v2_interface, | 284 | &zwp_text_input_manager_v2_interface, | ||
284 | &Registry::textInputManagerUnstableV2Announced, | 285 | &Registry::textInputManagerUnstableV2Announced, | ||
285 | &Registry::textInputManagerUnstableV2Removed | 286 | &Registry::textInputManagerUnstableV2Removed | ||
286 | }}, | 287 | }}, | ||
288 | {Registry::Interface::TextInputManagerUnstableV3, { | ||||
289 | 1, | ||||
290 | QByteArrayLiteral("zwp_text_input_manager_v3"), | ||||
291 | &zwp_text_input_manager_v3_interface, | ||||
292 | &Registry::textInputManagerUnstableV3Announced, | ||||
293 | &Registry::textInputManagerUnstableV3Removed | ||||
294 | }}, | ||||
287 | {Registry::Interface::XdgShellUnstableV5, { | 295 | {Registry::Interface::XdgShellUnstableV5, { | ||
288 | 1, | 296 | 1, | ||
289 | QByteArrayLiteral("xdg_shell"), | 297 | QByteArrayLiteral("xdg_shell"), | ||
290 | &zxdg_shell_v5_interface, | 298 | &zxdg_shell_v5_interface, | ||
291 | &Registry::xdgShellUnstableV5Announced, | 299 | &Registry::xdgShellUnstableV5Announced, | ||
292 | &Registry::xdgShellUnstableV5Removed | 300 | &Registry::xdgShellUnstableV5Removed | ||
293 | }}, | 301 | }}, | ||
294 | {Registry::Interface::RelativePointerManagerUnstableV1, { | 302 | {Registry::Interface::RelativePointerManagerUnstableV1, { | ||
▲ Show 20 Lines • Show All 365 Lines • ▼ Show 20 Line(s) | |||||
660 | BIND(Idle, org_kde_kwin_idle) | 668 | BIND(Idle, org_kde_kwin_idle) | ||
661 | BIND(RemoteAccessManager, org_kde_kwin_remote_access_manager) | 669 | BIND(RemoteAccessManager, org_kde_kwin_remote_access_manager) | ||
662 | BIND(FakeInput, org_kde_kwin_fake_input) | 670 | BIND(FakeInput, org_kde_kwin_fake_input) | ||
663 | BIND(OutputManagement, org_kde_kwin_outputmanagement) | 671 | BIND(OutputManagement, org_kde_kwin_outputmanagement) | ||
664 | BIND(OutputDevice, org_kde_kwin_outputdevice) | 672 | BIND(OutputDevice, org_kde_kwin_outputdevice) | ||
665 | BIND(ServerSideDecorationManager, org_kde_kwin_server_decoration_manager) | 673 | BIND(ServerSideDecorationManager, org_kde_kwin_server_decoration_manager) | ||
666 | BIND(TextInputManagerUnstableV0, wl_text_input_manager) | 674 | BIND(TextInputManagerUnstableV0, wl_text_input_manager) | ||
667 | BIND(TextInputManagerUnstableV2, zwp_text_input_manager_v2) | 675 | BIND(TextInputManagerUnstableV2, zwp_text_input_manager_v2) | ||
676 | BIND(TextInputManagerUnstableV3, zwp_text_input_manager_v3) | ||||
668 | BIND(XdgShellUnstableV5, xdg_shell) | 677 | BIND(XdgShellUnstableV5, xdg_shell) | ||
669 | BIND(XdgShellUnstableV6, zxdg_shell_v6) | 678 | BIND(XdgShellUnstableV6, zxdg_shell_v6) | ||
670 | BIND(XdgShellStable, xdg_wm_base) | 679 | BIND(XdgShellStable, xdg_wm_base) | ||
671 | BIND(RelativePointerManagerUnstableV1, zwp_relative_pointer_manager_v1) | 680 | BIND(RelativePointerManagerUnstableV1, zwp_relative_pointer_manager_v1) | ||
672 | BIND(PointerGesturesUnstableV1, zwp_pointer_gestures_v1) | 681 | BIND(PointerGesturesUnstableV1, zwp_pointer_gestures_v1) | ||
673 | BIND(PointerConstraintsUnstableV1, zwp_pointer_constraints_v1) | 682 | BIND(PointerConstraintsUnstableV1, zwp_pointer_constraints_v1) | ||
674 | BIND(XdgExporterUnstableV2, zxdg_exporter_v2) | 683 | BIND(XdgExporterUnstableV2, zxdg_exporter_v2) | ||
675 | BIND(XdgImporterUnstableV2, zxdg_importer_v2) | 684 | BIND(XdgImporterUnstableV2, zxdg_importer_v2) | ||
▲ Show 20 Lines • Show All 77 Lines • ▼ Show 20 Line(s) | |||||
753 | 762 | | |||
754 | TextInputManager *Registry::createTextInputManager(quint32 name, quint32 version, QObject *parent) | 763 | TextInputManager *Registry::createTextInputManager(quint32 name, quint32 version, QObject *parent) | ||
755 | { | 764 | { | ||
756 | switch (d->interfaceForName(name)) { | 765 | switch (d->interfaceForName(name)) { | ||
757 | case Interface::TextInputManagerUnstableV0: | 766 | case Interface::TextInputManagerUnstableV0: | ||
758 | return d->create<TextInputManagerUnstableV0>(name, version, parent, &Registry::bindTextInputManagerUnstableV0); | 767 | return d->create<TextInputManagerUnstableV0>(name, version, parent, &Registry::bindTextInputManagerUnstableV0); | ||
759 | case Interface::TextInputManagerUnstableV2: | 768 | case Interface::TextInputManagerUnstableV2: | ||
760 | return d->create<TextInputManagerUnstableV2>(name, version, parent, &Registry::bindTextInputManagerUnstableV2); | 769 | return d->create<TextInputManagerUnstableV2>(name, version, parent, &Registry::bindTextInputManagerUnstableV2); | ||
770 | case Interface::TextInputManagerUnstableV3: | ||||
771 | return d->create<TextInputManagerUnstableV3>(name, version, parent, &Registry::bindTextInputManagerUnstableV3); | ||||
761 | default: | 772 | default: | ||
762 | return nullptr; | 773 | return nullptr; | ||
763 | } | 774 | } | ||
764 | } | 775 | } | ||
765 | 776 | | |||
766 | XdgShell *Registry::createXdgShell(quint32 name, quint32 version, QObject *parent) | 777 | XdgShell *Registry::createXdgShell(quint32 name, quint32 version, QObject *parent) | ||
767 | { | 778 | { | ||
768 | switch (d->interfaceForName(name)) { | 779 | switch (d->interfaceForName(name)) { | ||
▲ Show 20 Lines • Show All 111 Lines • Show Last 20 Lines |