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) /**