Commit 1e84a56d authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

Introduce fake None xdg-decoration mode

This is intended for borderless maximized windows. They should be
neither client-side nor server-side decorated.
parent db91050f
......@@ -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;
......
......@@ -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)
/**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment