mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-29 19:26:00 +01:00
Allow to disable X11 backend separately from Xwayland after 5a750b485a
(#1445)
This commit is contained in:
parent
ce632b7a05
commit
ff9bcb19fa
3 changed files with 15 additions and 7 deletions
7
src/helpers/X11Stubs.hpp
Normal file
7
src/helpers/X11Stubs.hpp
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
inline bool wlr_backend_is_x11(void*) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
inline void wlr_x11_output_create(void*) {}
|
|
@ -160,9 +160,3 @@ inline void wlr_xwayland_surface_close(wlr_xwayland_surface*) {}
|
||||||
inline void wlr_xwayland_surface_set_fullscreen(wlr_xwayland_surface*, bool) {}
|
inline void wlr_xwayland_surface_set_fullscreen(wlr_xwayland_surface*, bool) {}
|
||||||
|
|
||||||
inline void wlr_xwayland_surface_set_minimized(wlr_xwayland_surface*, bool) {}
|
inline void wlr_xwayland_surface_set_minimized(wlr_xwayland_surface*, bool) {}
|
||||||
|
|
||||||
inline bool wlr_backend_is_x11(void*) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
inline void wlr_x11_output_create(void*) {}
|
|
|
@ -105,8 +105,11 @@ extern "C" {
|
||||||
|
|
||||||
#include <drm_fourcc.h>
|
#include <drm_fourcc.h>
|
||||||
|
|
||||||
#ifndef NO_XWAYLAND
|
#if WLR_HAS_X11_BACKEND
|
||||||
#include <wlr/backend/x11.h>
|
#include <wlr/backend/x11.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef NO_XWAYLAND
|
||||||
#include <wlr/xwayland.h>
|
#include <wlr/xwayland.h>
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -127,6 +130,10 @@ extern "C" {
|
||||||
#include <GLES3/gl3ext.h>
|
#include <GLES3/gl3ext.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if !WLR_HAS_X11_BACKEND
|
||||||
|
#include "helpers/X11Stubs.hpp"
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef NO_XWAYLAND
|
#ifdef NO_XWAYLAND
|
||||||
#define XWAYLAND false
|
#define XWAYLAND false
|
||||||
#include "helpers/XWaylandStubs.hpp"
|
#include "helpers/XWaylandStubs.hpp"
|
||||||
|
|
Loading…
Reference in a new issue