aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2024-05-25 00:02:48 +0200
committerFurkan Sahin <furkan-dev@proton.me>2024-05-25 00:02:48 +0200
commit6f044656d10446a1ad5e708866f5fd79dfaf68c5 (patch)
treef729d10af593d47a3e52d2e76a975c6edae02f33 /include
parentcc0963e7eaa2e595267b3a807b62cbb823bca7cd (diff)
Drop server.h include from input/input-manager.h
The only reason it's included there is for a declaration of struct sway_server, but we can just forward-declare it. This avoids rebuilding almost all of Sway when touching server.h. All other server.h includes are from source files, not headers.
Diffstat (limited to 'include')
-rw-r--r--include/sway/criteria.h4
-rw-r--r--include/sway/input/input-manager.h3
2 files changed, 6 insertions, 1 deletions
diff --git a/include/sway/criteria.h b/include/sway/criteria.h
index 758d70ed..ae546821 100644
--- a/include/sway/criteria.h
+++ b/include/sway/criteria.h
@@ -7,6 +7,10 @@
#include "list.h"
#include "tree/view.h"
+#if WLR_HAS_XWAYLAND
+#include "sway/xwayland.h"
+#endif
+
enum criteria_type {
CT_COMMAND = 1 << 0,
CT_ASSIGN_OUTPUT = 1 << 1,
diff --git a/include/sway/input/input-manager.h b/include/sway/input/input-manager.h
index 45c75199..b014e18f 100644
--- a/include/sway/input/input-manager.h
+++ b/include/sway/input/input-manager.h
@@ -5,10 +5,11 @@
#include <wlr/types/wlr_virtual_keyboard_v1.h>
#include <wlr/types/wlr_virtual_pointer_v1.h>
#include <wlr/types/wlr_transient_seat_v1.h>
-#include "sway/server.h"
#include "sway/config.h"
#include "list.h"
+struct sway_server;
+
struct sway_input_device {
char *identifier;
struct wlr_input_device *wlr_device;