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:
parent
db91050fb5
commit
1e84a56df8
2 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||||
|
|
|
@ -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)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue