mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-11-20 09:29:44 +00:00
drop the environment switches
The backend, decoration and resize-logging switches were only used while working on this, and undocumented ones should not stay: - VOXEL_WINDOW_BACKEND: the backend is still chosen by WAYLAND_DISPLAY, and GLFW is used when it is not set; - VOXEL_DECORATIONS: own decorations are always enabled when the compositor provides none; - VOXEL_LOG_RESIZE: the resize statistics are removed together with the counters they needed. WaylandDecorations.cpp replaces WaylandBar.cpp: drawing moved to the engine, the file only holds the decoration behaviour now.
This commit is contained in:
parent
1dbd445027
commit
6a5e485bca
4 changed files with 1 additions and 80 deletions
|
|
@ -5,16 +5,11 @@
|
|||
#include "window/input.hpp"
|
||||
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
|
||||
static debug::Logger logger("window");
|
||||
|
||||
#ifdef VOXELENGINE_WAYLAND
|
||||
static bool prefer_wayland() {
|
||||
const char* backend = getenv("VOXEL_WINDOW_BACKEND");
|
||||
if (backend != nullptr) {
|
||||
return strcmp(backend, "wayland") == 0;
|
||||
}
|
||||
const char* display = getenv("WAYLAND_DISPLAY");
|
||||
if (display != nullptr && *display) {
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue