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:
trianta 2024-09-05 11:26:46 -05:00 committed by GitHub
parent 027140b731
commit bd6d6e7f33
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 48 additions and 6 deletions

View file

@ -92,6 +92,7 @@ class CCompositor {
CMonitor* m_pUnsafeOutput = nullptr; // fallback output for the unsafe state
bool m_bIsShuttingDown = false;
bool m_bDesktopEnvSet = false;
bool m_bEnableXwayland = true;
// ------------------------------------------------- //