forked from pyrite-dev/milsko
allow x11 backend to be disabled (on by default) (i doubt people will do this)
This commit is contained in:
parent
2e2a97e4a8
commit
d4f6ca14e2
5 changed files with 31 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue