xwayland: add option to enable/disable xwayland (#7633)
* config: add xwayland enabled option to config * xwayland: use DISPLAY env variable for enable/disable of new launches * xwayland: close X11 windows when turning of XWayland * clang: format fix * config: add better description for xwayland:enabled * xwayland: close X11 windows on disable without crashes * xwayland: better method of informing CXWayland if xwayland enabled * xwayland: prevent closing non-xwayland windows on disable * misc: loop formatting
This commit is contained in:
parent
027140b731
commit
bd6d6e7f33
8 changed files with 48 additions and 6 deletions
|
|
@ -17,7 +17,7 @@ class CXWM;
|
|||
|
||||
class CXWayland {
|
||||
public:
|
||||
CXWayland();
|
||||
CXWayland(const bool enabled);
|
||||
|
||||
#ifndef NO_XWAYLAND
|
||||
std::unique_ptr<CXWaylandServer> pServer;
|
||||
|
|
@ -126,4 +126,4 @@ inline std::unordered_map<std::string, uint32_t> HYPRATOMS = {
|
|||
HYPRATOM("DELETE"),
|
||||
HYPRATOM("TEXT"),
|
||||
HYPRATOM("INCR"),
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue