From 1e84a56df87dc1e3fce038a70b8b1c6577b31500 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Sat, 1 May 2021 17:40:33 +0300 Subject: [PATCH] Introduce fake None xdg-decoration mode This is intended for borderless maximized windows. They should be neither client-side nor server-side decorated. --- src/wayland/xdgdecoration_v1_interface.cpp | 1 + src/wayland/xdgdecoration_v1_interface.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wayland/xdgdecoration_v1_interface.cpp b/src/wayland/xdgdecoration_v1_interface.cpp index e07258b7a3..b28737ce49 100644 --- a/src/wayland/xdgdecoration_v1_interface.cpp +++ b/src/wayland/xdgdecoration_v1_interface.cpp @@ -128,6 +128,7 @@ void XdgToplevelDecorationV1Interface::sendConfigure(Mode mode) case Mode::Client: d->send_configure(QtWaylandServer::zxdg_toplevel_decoration_v1::mode_client_side); break; + case Mode::None: // Faked as server_side mode. case Mode::Server: d->send_configure(QtWaylandServer::zxdg_toplevel_decoration_v1::mode_server_side); break; diff --git a/src/wayland/xdgdecoration_v1_interface.h b/src/wayland/xdgdecoration_v1_interface.h index 55a07ee74c..0f87994da2 100644 --- a/src/wayland/xdgdecoration_v1_interface.h +++ b/src/wayland/xdgdecoration_v1_interface.h @@ -61,7 +61,7 @@ class KWAYLANDSERVER_EXPORT XdgToplevelDecorationV1Interface : public QObject Q_OBJECT public: - enum class Mode { Undefined, Client, Server }; + enum class Mode { Undefined, None, Client, Server }; Q_ENUM(Mode) /**