more style fixes, included "sway/config.h" where needed

This commit is contained in:
Pascal Pascher 2018-07-25 12:17:10 +02:00
parent 2bf893248a
commit 79a45d4a40
8 changed files with 17 additions and 12 deletions

View file

@ -12,6 +12,7 @@
#include <wlr/render/wlr_renderer.h> #include <wlr/render/wlr_renderer.h>
// TODO WLR: make Xwayland optional // TODO WLR: make Xwayland optional
#include "list.h" #include "list.h"
#include "config.h"
#ifdef HAVE_XWAYLAND #ifdef HAVE_XWAYLAND
#include "sway/xwayland.h" #include "sway/xwayland.h"
#endif #endif

View file

@ -1,4 +1,3 @@
#ifdef HAVE_XWAYLAND
#ifndef SWAY_XWAYLAND_H #ifndef SWAY_XWAYLAND_H
#define SWAY_XWAYLAND_H #define SWAY_XWAYLAND_H
@ -24,4 +23,3 @@ struct sway_xwayland {
void handle_xwayland_ready(struct wl_listener *listener, void *data); void handle_xwayland_ready(struct wl_listener *listener, void *data);
#endif #endif
#endif

View file

@ -1,5 +1,6 @@
#include <strings.h> #include <strings.h>
#include <wlr/util/log.h> #include <wlr/util/log.h>
#include "sway/config.h"
#include "sway/commands.h" #include "sway/commands.h"
#include "sway/tree/arrange.h" #include "sway/tree/arrange.h"
#include "sway/tree/layout.h" #include "sway/tree/layout.h"

View file

@ -10,6 +10,7 @@
#include "stringop.h" #include "stringop.h"
#include "list.h" #include "list.h"
#include "log.h" #include "log.h"
#include "config.h"
bool criteria_is_empty(struct criteria *criteria) { bool criteria_is_empty(struct criteria *criteria) {
return !criteria->title return !criteria->title

View file

@ -11,6 +11,7 @@
#include <wlr/types/wlr_idle.h> #include <wlr/types/wlr_idle.h>
#include "list.h" #include "list.h"
#include "log.h" #include "log.h"
#include "sway/config.h"
#include "sway/desktop.h" #include "sway/desktop.h"
#include "sway/desktop/transaction.h" #include "sway/desktop/transaction.h"
#include "sway/input/cursor.h" #include "sway/input/cursor.h"

View file

@ -12,6 +12,7 @@
#include <wlr/types/wlr_output_layout.h> #include <wlr/types/wlr_output_layout.h>
#include <wlr/types/wlr_xcursor_manager.h> #include <wlr/types/wlr_xcursor_manager.h>
#include "log.h" #include "log.h"
#include "sway/config.h"
#include "sway/debug.h" #include "sway/debug.h"
#include "sway/desktop.h" #include "sway/desktop.h"
#include "sway/input/cursor.h" #include "sway/input/cursor.h"

View file

@ -6,6 +6,7 @@
#include <string.h> #include <string.h>
#include <wlr/types/wlr_output.h> #include <wlr/types/wlr_output.h>
#include <wlr/types/wlr_output_layout.h> #include <wlr/types/wlr_output_layout.h>
#include "sway/config.h"
#include "sway/debug.h" #include "sway/debug.h"
#include "sway/tree/arrange.h" #include "sway/tree/arrange.h"
#include "sway/tree/container.h" #include "sway/tree/container.h"

View file

@ -3,6 +3,7 @@
#include <wayland-server.h> #include <wayland-server.h>
#include <wlr/render/wlr_renderer.h> #include <wlr/render/wlr_renderer.h>
#include <wlr/types/wlr_output_layout.h> #include <wlr/types/wlr_output_layout.h>
#include "sway/config.h"
#ifdef HAVE_XWAYLAND #ifdef HAVE_XWAYLAND
#include <wlr/xwayland.h> #include <wlr/xwayland.h>
#endif #endif