aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Smedstad <carl.smedstad@protonmail.com>2022-11-06 20:31:41 +0100
committerSimon Ser <contact@emersion.fr>2023-01-03 21:50:56 +0100
commit95405911051dbb233902c95f824dccdde1e419fd (patch)
treeaec4203df66bdd6b556fb849d1f6d898830fd3b4
parente3257e646ce72a3f26cc5ca67f07389e497c816b (diff)
Add missing includes & remove duplicates
-rw-r--r--include/sway/desktop/launcher.h1
-rw-r--r--include/sway/input/text_input.h1
-rw-r--r--include/sway/tree/node.h1
-rw-r--r--include/sway/tree/view.h2
-rw-r--r--include/sway/tree/workspace.h1
-rw-r--r--include/swaybar/tray/item.h1
-rw-r--r--include/swaynag/types.h4
-rw-r--r--sway/commands/exec_always.c1
8 files changed, 9 insertions, 3 deletions
diff --git a/include/sway/desktop/launcher.h b/include/sway/desktop/launcher.h
index 3b577f74..d5651adf 100644
--- a/include/sway/desktop/launcher.h
+++ b/include/sway/desktop/launcher.h
@@ -2,6 +2,7 @@
#define _SWAY_LAUNCHER_H
#include <stdlib.h>
+#include <wayland-server-core.h>
struct launcher_ctx {
pid_t pid;
diff --git a/include/sway/input/text_input.h b/include/sway/input/text_input.h
index c70fd935..4de96d44 100644
--- a/include/sway/input/text_input.h
+++ b/include/sway/input/text_input.h
@@ -4,7 +4,6 @@
#include <wlr/types/wlr_text_input_v3.h>
#include <wlr/types/wlr_input_method_v2.h>
#include <wlr/types/wlr_compositor.h>
-#include "sway/input/seat.h"
/**
* The relay structure manages the relationship between text-input and
diff --git a/include/sway/tree/node.h b/include/sway/tree/node.h
index 470ee3b5..03a389a4 100644
--- a/include/sway/tree/node.h
+++ b/include/sway/tree/node.h
@@ -1,5 +1,6 @@
#ifndef _SWAY_NODE_H
#define _SWAY_NODE_H
+#include <wayland-server-core.h>
#include <stdbool.h>
#include "list.h"
diff --git a/include/sway/tree/view.h b/include/sway/tree/view.h
index 1b033ee5..273ff364 100644
--- a/include/sway/tree/view.h
+++ b/include/sway/tree/view.h
@@ -2,7 +2,7 @@
#define _SWAY_VIEW_H
#include <wayland-server-core.h>
#include <wlr/types/wlr_compositor.h>
-#include "config.h"
+#include "sway/config.h"
#if HAVE_XWAYLAND
#include <wlr/xwayland.h>
#endif
diff --git a/include/sway/tree/workspace.h b/include/sway/tree/workspace.h
index b3d93a81..b0fef4ca 100644
--- a/include/sway/tree/workspace.h
+++ b/include/sway/tree/workspace.h
@@ -2,6 +2,7 @@
#define _SWAY_WORKSPACE_H
#include <stdbool.h>
+#include "sway/config.h"
#include "sway/tree/container.h"
#include "sway/tree/node.h"
diff --git a/include/swaybar/tray/item.h b/include/swaybar/tray/item.h
index c02a5582..73937a0c 100644
--- a/include/swaybar/tray/item.h
+++ b/include/swaybar/tray/item.h
@@ -4,6 +4,7 @@
#include <cairo.h>
#include <stdbool.h>
#include <stdint.h>
+#include <wayland-util.h>
#include "swaybar/tray/tray.h"
#include "list.h"
diff --git a/include/swaynag/types.h b/include/swaynag/types.h
index 31c6ac08..9c3c50db 100644
--- a/include/swaynag/types.h
+++ b/include/swaynag/types.h
@@ -1,6 +1,10 @@
#ifndef _SWAYNAG_TYPES_H
#define _SWAYNAG_TYPES_H
+#include <stdint.h>
+#include <pango/pangocairo.h>
+#include "list.h"
+
struct swaynag_type {
char *name;
diff --git a/sway/commands/exec_always.c b/sway/commands/exec_always.c
index e6b09e64..bb982621 100644
--- a/sway/commands/exec_always.c
+++ b/sway/commands/exec_always.c
@@ -9,7 +9,6 @@
#include "sway/config.h"
#include "sway/server.h"
#include "sway/desktop/launcher.h"
-#include "sway/server.h"
#include "sway/tree/container.h"
#include "sway/tree/root.h"
#include "sway/tree/workspace.h"