mirror of
https://github.com/cage-kiosk/cage.git
synced 2025-10-29 05:40:19 -04:00
s/ifdef/if/g
ifdef gives us some troubles with the thing being set to 0 but still be defined, so let's just use if.
This commit is contained in:
parent
81761cae96
commit
183e509dd9
2 changed files with 3 additions and 3 deletions
2
server.h
2
server.h
|
|
@ -6,7 +6,7 @@
|
||||||
#include <wayland-server.h>
|
#include <wayland-server.h>
|
||||||
#include <wlr/backend.h>
|
#include <wlr/backend.h>
|
||||||
#include <wlr/types/wlr_output_layout.h>
|
#include <wlr/types/wlr_output_layout.h>
|
||||||
#ifdef CAGE_HAS_XWAYLAND
|
#if CAGE_HAS_XWAYLAND
|
||||||
#include <wlr/xwayland.h>
|
#include <wlr/xwayland.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
4
view.h
4
view.h
|
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
enum cg_view_type {
|
enum cg_view_type {
|
||||||
CAGE_XDG_SHELL_VIEW,
|
CAGE_XDG_SHELL_VIEW,
|
||||||
#ifdef CAGE_HAS_XWAYLAND
|
#if CAGE_HAS_XWAYLAND
|
||||||
CAGE_XWAYLAND_VIEW,
|
CAGE_XWAYLAND_VIEW,
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
@ -27,7 +27,7 @@ struct cg_view {
|
||||||
enum cg_view_type type;
|
enum cg_view_type type;
|
||||||
union {
|
union {
|
||||||
struct wlr_xdg_surface *xdg_surface;
|
struct wlr_xdg_surface *xdg_surface;
|
||||||
#ifdef CAGE_HAS_XWAYLAND
|
#if CAGE_HAS_XWAYLAND
|
||||||
struct wlr_xwayland_surface *xwayland_surface;
|
struct wlr_xwayland_surface *xwayland_surface;
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue