allow x11 backend to be disabled (on by default) (i doubt people will do this)

This commit is contained in:
IoI_xD 2026-03-31 13:54:12 -07:00
commit d4f6ca14e2
5 changed files with 31 additions and 5 deletions

View file

@ -1,8 +1,12 @@
my @enabled_backends=();
if (param_get("wayland")) {
use_backend("wayland", "x11");
push(@enabled_backends,"wayland");
}
else {
use_backend("x11");
if (param_get("x11")) {
push(@enabled_backends,"x11");
}
use_backend(@enabled_backends);
1;

View file

@ -8,13 +8,11 @@ if (param_get("classic-theme")) {
if (grep(/^x11$/, @backends)) {
add_cflags("-DUSE_X11");
new_object("src/backend/x11.c");
#add_libs("-lX11");
$gl_libs = "-lGL -lGLU";
if (param_get("xrender")) {
add_cflags("-DUSE_XRENDER");
#add_libs("-lXrender");
}
}