Detect x11/wayland at runtime
This commit is contained in:
parent
10ca72f934
commit
d68b8138a5
3 changed files with 37 additions and 3 deletions
|
|
@ -756,7 +756,9 @@ int load_xcb() {
|
|||
|
||||
int load_x11() {
|
||||
// This will be called once only
|
||||
static int x11_status = x11::init() || x11::rr::init() || x11::fix::init();
|
||||
static int x11_status =
|
||||
window_system == window_system_e::NONE ||
|
||||
x11::init() || x11::rr::init() || x11::fix::init();
|
||||
|
||||
return x11_status;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue