summaryrefslogtreecommitdiff
path: root/types
diff options
context:
space:
mode:
Diffstat (limited to 'types')
-rw-r--r--types/fx/shadow_data.c2
-rw-r--r--types/meson.build9
-rw-r--r--types/scene/wlr_scene.c4
3 files changed, 10 insertions, 5 deletions
diff --git a/types/fx/shadow_data.c b/types/fx/shadow_data.c
index fae76cf..a8ad8f9 100644
--- a/types/fx/shadow_data.c
+++ b/types/fx/shadow_data.c
@@ -1,7 +1,7 @@
#include <assert.h>
#include <stdlib.h>
#include <string.h>
-#include "types/fx/shadow_data.h"
+#include "scenefx/types/fx/shadow_data.h"
#include "wlr/util/log.h"
struct shadow_data shadow_data_get_default(void) {
diff --git a/types/meson.build b/types/meson.build
index 0527b7c..29e9c36 100644
--- a/types/meson.build
+++ b/types/meson.build
@@ -1,7 +1,12 @@
wlr_files += files(
- 'output/wlr_output.c',
'scene/wlr_scene.c',
- 'buffer/buffer.c',
)
+if not wlroots_is_sub
+ wlr_files += files([
+ 'output/wlr_output.c',
+ 'buffer/buffer.c',
+ ])
+endif
+
subdir('fx')
diff --git a/types/scene/wlr_scene.c b/types/scene/wlr_scene.c
index 8ded6a8..e9f765c 100644
--- a/types/scene/wlr_scene.c
+++ b/types/scene/wlr_scene.c
@@ -1,6 +1,7 @@
#define _POSIX_C_SOURCE 200809L
#include <assert.h>
#include <stdlib.h>
+#include <scenefx/types/wlr_scene.h>
#include <string.h>
#include <wlr/backend.h>
#include <wlr/render/gles2.h>
@@ -8,7 +9,6 @@
#include <wlr/types/wlr_damage_ring.h>
#include <wlr/types/wlr_matrix.h>
#include <wlr/types/wlr_presentation_time.h>
-#include <wlr/types/wlr_scene.h>
#include <wlr/types/wlr_subcompositor.h>
#include <wlr/types/wlr_xdg_shell.h>
#include <wlr/util/log.h>
@@ -16,7 +16,7 @@
#include <wlr/render/swapchain.h>
#include "render/pass.h"
-#include "types/fx/shadow_data.h"
+#include "scenefx/types/fx/shadow_data.h"
#include "types/wlr_buffer.h"
#include "types/wlr_output.h"
#include "types/wlr_scene.h"