From 79f3cf88a792d7f76d1b08cfd6131107ebba91df Mon Sep 17 00:00:00 2001 From: grahnen Date: Wed, 16 Jan 2019 00:23:41 +0100 Subject: [PATCH] Declare cmd_gesture and create an empty body. --- include/sway/commands.h | 1 + sway/commands.c | 1 + sway/commands/gesture.c | 14 ++++++++++++++ sway/input/cursor.c | 2 +- 4 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 sway/commands/gesture.c diff --git a/include/sway/commands.h b/include/sway/commands.h index cfe2aa079..599665bcf 100644 --- a/include/sway/commands.h +++ b/include/sway/commands.h @@ -134,6 +134,7 @@ sway_cmd cmd_force_display_urgency_hint; sway_cmd cmd_force_focus_wrapping; sway_cmd cmd_fullscreen; sway_cmd cmd_gaps; +sway_cmd cmd_gesture; sway_cmd cmd_hide_edge_borders; sway_cmd cmd_include; sway_cmd cmd_inhibit_idle; diff --git a/sway/commands.c b/sway/commands.c index 237bfc281..c5d70242d 100644 --- a/sway/commands.c +++ b/sway/commands.c @@ -72,6 +72,7 @@ static struct cmd_handler handlers[] = { { "force_focus_wrapping", cmd_force_focus_wrapping }, { "fullscreen", cmd_fullscreen }, { "gaps", cmd_gaps }, + { "gesture", cmd_gesture }, { "hide_edge_borders", cmd_hide_edge_borders }, { "include", cmd_include }, { "input", cmd_input }, diff --git a/sway/commands/gesture.c b/sway/commands/gesture.c new file mode 100644 index 000000000..23f431f92 --- /dev/null +++ b/sway/commands/gesture.c @@ -0,0 +1,14 @@ +#define _POSIX_C_SOURCE 200809L +#include +#include +#include +#include "sway/commands.h" +#include "sway/config.h" +#include "sway/ipc-server.h" +#include "list.h" +#include "log.h" +#include "stringop.h" + +struct cmd_results *cmd_gesture(int argc, char **argv) { + return NULL; +} diff --git a/sway/input/cursor.c b/sway/input/cursor.c index 2b2f4000e..098470289 100644 --- a/sway/input/cursor.c +++ b/sway/input/cursor.c @@ -28,7 +28,7 @@ #include "sway/tree/view.h" #include "sway/tree/workspace.h" #include "wlr-layer-shell-unstable-v1-protocol.h" -#include "libtouch.h" +#include "" static uint32_t get_current_time_msec(void) { struct timespec now;