Introduce fake None xdg-decoration mode

This is intended for borderless maximized windows. They should be
neither client-side nor server-side decorated.
This commit is contained in:
Vlad Zahorodnii 2021-05-01 17:40:33 +03:00
parent db91050fb5
commit 1e84a56df8
2 changed files with 2 additions and 1 deletions

View file

@ -128,6 +128,7 @@ void XdgToplevelDecorationV1Interface::sendConfigure(Mode mode)
case Mode::Client: case Mode::Client:
d->send_configure(QtWaylandServer::zxdg_toplevel_decoration_v1::mode_client_side); d->send_configure(QtWaylandServer::zxdg_toplevel_decoration_v1::mode_client_side);
break; break;
case Mode::None: // Faked as server_side mode.
case Mode::Server: case Mode::Server:
d->send_configure(QtWaylandServer::zxdg_toplevel_decoration_v1::mode_server_side); d->send_configure(QtWaylandServer::zxdg_toplevel_decoration_v1::mode_server_side);
break; break;

View file

@ -61,7 +61,7 @@ class KWAYLANDSERVER_EXPORT XdgToplevelDecorationV1Interface : public QObject
Q_OBJECT Q_OBJECT
public: public:
enum class Mode { Undefined, Client, Server }; enum class Mode { Undefined, None, Client, Server };
Q_ENUM(Mode) Q_ENUM(Mode)
/** /**