From d7ff776552bef524e905d85c2a5e7651c8408658 Mon Sep 17 00:00:00 2001 From: M Stoeckl Date: Mon, 21 Jan 2019 12:39:16 -0500 Subject: Move sway-specific functions in common/util.c into sway/ Modifier handling functions were moved into sway/input/keyboard.c; opposite_direction for enum wlr_direction into sway/tree/output.c; and get_parent_pid into sway/tree/root.c . --- sway/commands/bar/modifier.c | 2 +- sway/commands/bind.c | 1 + sway/commands/floating_modifier.c | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) (limited to 'sway/commands') diff --git a/sway/commands/bar/modifier.c b/sway/commands/bar/modifier.c index 62ec681f..c95250d1 100644 --- a/sway/commands/bar/modifier.c +++ b/sway/commands/bar/modifier.c @@ -1,8 +1,8 @@ #include #include "sway/commands.h" +#include "sway/input/keyboard.h" #include "log.h" #include "stringop.h" -#include "util.h" struct cmd_results *bar_cmd_modifier(int argc, char **argv) { struct cmd_results *error = NULL; diff --git a/sway/commands/bind.c b/sway/commands/bind.c index ce087fd0..59116d67 100644 --- a/sway/commands/bind.c +++ b/sway/commands/bind.c @@ -8,6 +8,7 @@ #include "sway/commands.h" #include "sway/config.h" #include "sway/input/cursor.h" +#include "sway/input/keyboard.h" #include "sway/ipc-server.h" #include "list.h" #include "log.h" diff --git a/sway/commands/floating_modifier.c b/sway/commands/floating_modifier.c index 3674971a..fd606281 100644 --- a/sway/commands/floating_modifier.c +++ b/sway/commands/floating_modifier.c @@ -1,7 +1,7 @@ #include "strings.h" #include "sway/commands.h" #include "sway/config.h" -#include "util.h" +#include "sway/input/keyboard.h" struct cmd_results *cmd_floating_modifier(int argc, char **argv) { struct cmd_results *error = NULL; -- cgit v1.2.3