mirror of
https://github.com/swaywm/sway.git
synced 2025-10-29 05:40:18 -04:00
Reorganize includes
This commit is contained in:
parent
729fdf7d91
commit
416417a54c
50 changed files with 146 additions and 154 deletions
|
|
@ -5,15 +5,14 @@
|
|||
#include <errno.h>
|
||||
#include <sys/wait.h>
|
||||
#include <poll.h>
|
||||
|
||||
#include "swaybar/ipc.h"
|
||||
#include "swaybar/render.h"
|
||||
#include "swaybar/config.h"
|
||||
#include "swaybar/status_line.h"
|
||||
#include "swaybar/bar.h"
|
||||
#include "ipc-client.h"
|
||||
#include "list.h"
|
||||
#include "log.h"
|
||||
#include "bar/ipc.h"
|
||||
#include "bar/render.h"
|
||||
#include "bar/config.h"
|
||||
#include "bar/status_line.h"
|
||||
#include "bar/bar.h"
|
||||
|
||||
static void bar_init(struct bar *bar) {
|
||||
bar->config = init_config();
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#include "wayland-desktop-shell-client-protocol.h"
|
||||
#include "log.h"
|
||||
#include "bar/config.h"
|
||||
#include "swaybar/config.h"
|
||||
|
||||
uint32_t parse_position(const char *position) {
|
||||
if (strcmp("top", position) == 0) {
|
||||
|
|
|
|||
|
|
@ -1,11 +1,10 @@
|
|||
#include <string.h>
|
||||
#include <json-c/json.h>
|
||||
|
||||
#include "swaybar/config.h"
|
||||
#include "swaybar/ipc.h"
|
||||
#include "ipc-client.h"
|
||||
#include "list.h"
|
||||
#include "log.h"
|
||||
#include "bar/config.h"
|
||||
#include "bar/ipc.h"
|
||||
|
||||
void ipc_send_workspace_command(const char *workspace_name) {
|
||||
uint32_t size = strlen("workspace ") + strlen(workspace_name) + 1;
|
||||
|
|
|
|||
|
|
@ -3,9 +3,9 @@
|
|||
#include <string.h>
|
||||
#include <stdbool.h>
|
||||
#include <getopt.h>
|
||||
#include "swaybar/bar.h"
|
||||
#include "ipc-client.h"
|
||||
#include "log.h"
|
||||
#include "bar/bar.h"
|
||||
|
||||
/* global bar state */
|
||||
struct bar swaybar;
|
||||
|
|
|
|||
|
|
@ -5,9 +5,9 @@
|
|||
#include "client/cairo.h"
|
||||
#include "client/pango.h"
|
||||
#include "client/window.h"
|
||||
#include "bar/config.h"
|
||||
#include "bar/status_line.h"
|
||||
#include "bar/render.h"
|
||||
#include "swaybar/config.h"
|
||||
#include "swaybar/status_line.h"
|
||||
#include "swaybar/render.h"
|
||||
|
||||
|
||||
/* internal spacing */
|
||||
|
|
|
|||
|
|
@ -3,9 +3,9 @@
|
|||
#include <unistd.h>
|
||||
#include <json-c/json.h>
|
||||
|
||||
#include "swaybar/config.h"
|
||||
#include "swaybar/status_line.h"
|
||||
#include "log.h"
|
||||
#include "bar/config.h"
|
||||
#include "bar/status_line.h"
|
||||
#include "util.h"
|
||||
|
||||
#define I3JSON_MAXDEPTH 4
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue