Add missing includes & remove duplicates

This commit is contained in:
Carl Smedstad 2022-11-06 20:31:41 +01:00 committed by Simon Ser
parent e3257e646c
commit 9540591105
8 changed files with 9 additions and 3 deletions

View file

@ -2,6 +2,7 @@
#define _SWAY_LAUNCHER_H #define _SWAY_LAUNCHER_H
#include <stdlib.h> #include <stdlib.h>
#include <wayland-server-core.h>
struct launcher_ctx { struct launcher_ctx {
pid_t pid; pid_t pid;

View file

@ -4,7 +4,6 @@
#include <wlr/types/wlr_text_input_v3.h> #include <wlr/types/wlr_text_input_v3.h>
#include <wlr/types/wlr_input_method_v2.h> #include <wlr/types/wlr_input_method_v2.h>
#include <wlr/types/wlr_compositor.h> #include <wlr/types/wlr_compositor.h>
#include "sway/input/seat.h"
/** /**
* The relay structure manages the relationship between text-input and * The relay structure manages the relationship between text-input and

View file

@ -1,5 +1,6 @@
#ifndef _SWAY_NODE_H #ifndef _SWAY_NODE_H
#define _SWAY_NODE_H #define _SWAY_NODE_H
#include <wayland-server-core.h>
#include <stdbool.h> #include <stdbool.h>
#include "list.h" #include "list.h"

View file

@ -2,7 +2,7 @@
#define _SWAY_VIEW_H #define _SWAY_VIEW_H
#include <wayland-server-core.h> #include <wayland-server-core.h>
#include <wlr/types/wlr_compositor.h> #include <wlr/types/wlr_compositor.h>
#include "config.h" #include "sway/config.h"
#if HAVE_XWAYLAND #if HAVE_XWAYLAND
#include <wlr/xwayland.h> #include <wlr/xwayland.h>
#endif #endif

View file

@ -2,6 +2,7 @@
#define _SWAY_WORKSPACE_H #define _SWAY_WORKSPACE_H
#include <stdbool.h> #include <stdbool.h>
#include "sway/config.h"
#include "sway/tree/container.h" #include "sway/tree/container.h"
#include "sway/tree/node.h" #include "sway/tree/node.h"

View file

@ -4,6 +4,7 @@
#include <cairo.h> #include <cairo.h>
#include <stdbool.h> #include <stdbool.h>
#include <stdint.h> #include <stdint.h>
#include <wayland-util.h>
#include "swaybar/tray/tray.h" #include "swaybar/tray/tray.h"
#include "list.h" #include "list.h"

View file

@ -1,6 +1,10 @@
#ifndef _SWAYNAG_TYPES_H #ifndef _SWAYNAG_TYPES_H
#define _SWAYNAG_TYPES_H #define _SWAYNAG_TYPES_H
#include <stdint.h>
#include <pango/pangocairo.h>
#include "list.h"
struct swaynag_type { struct swaynag_type {
char *name; char *name;

View file

@ -9,7 +9,6 @@
#include "sway/config.h" #include "sway/config.h"
#include "sway/server.h" #include "sway/server.h"
#include "sway/desktop/launcher.h" #include "sway/desktop/launcher.h"
#include "sway/server.h"
#include "sway/tree/container.h" #include "sway/tree/container.h"
#include "sway/tree/root.h" #include "sway/tree/root.h"
#include "sway/tree/workspace.h" #include "sway/tree/workspace.h"