mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-16 08:56:26 -05:00
Removed testing for wayland/xorg from examples
This commit is contained in:
parent
c97de93fe1
commit
dbb8612d0c
2 changed files with 1 additions and 18 deletions
|
|
@ -107,14 +107,6 @@ int disable_outputs(void *data) {
|
|||
}
|
||||
|
||||
int main() {
|
||||
if (getenv("DISPLAY")) {
|
||||
fprintf(stderr, "Detected that X is running. Run this in its own virtual terminal.\n");
|
||||
return 1;
|
||||
} else if (getenv("WAYLAND_DISPLAY")) {
|
||||
fprintf(stderr, "Detected that Wayland is running. Run this in its own virtual terminal.\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
struct state state = {
|
||||
.color = { 1.0, 0.0, 0.0 },
|
||||
.dec = 0,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue