aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authornyorain <nyorain@gmail.com>2017-07-07 15:38:45 +0200
committernyorain <nyorain@gmail.com>2017-07-07 15:38:45 +0200
commit02c75ebe37d50ff97c4fd8b6be169ac4e1074b07 (patch)
treedc5f4295e0b988b2f8746507a2fadfbda7b8d881 /include
parent23a1e944027265c70654d7395362641b59428062 (diff)
Implement ipc get_clipboard
Diffstat (limited to 'include')
-rw-r--r--include/ipc.h1
-rw-r--r--include/sway/config.h3
2 files changed, 3 insertions, 1 deletions
diff --git a/include/ipc.h b/include/ipc.h
index 98390335..2b16dc50 100644
--- a/include/ipc.h
+++ b/include/ipc.h
@@ -13,6 +13,7 @@ enum ipc_command_type {
IPC_GET_BAR_CONFIG = 6,
IPC_GET_VERSION = 7,
IPC_GET_INPUTS = 8,
+ IPC_GET_CLIPBOARD = 9,
// Events send from sway to clients. Events have the highest bits set.
IPC_EVENT_WORKSPACE = ((1<<31) | 0),
IPC_EVENT_OUTPUT = ((1<<31) | 1),
diff --git a/include/sway/config.h b/include/sway/config.h
index 999a471a..b0cd86eb 100644
--- a/include/sway/config.h
+++ b/include/sway/config.h
@@ -235,8 +235,9 @@ enum ipc_feature {
IPC_FEATURE_EVENT_WINDOW = 2048,
IPC_FEATURE_EVENT_BINDING = 4096,
IPC_FEATURE_EVENT_INPUT = 8192,
+ IPC_FEATURE_GET_CLIPBOARD = 16384,
- IPC_FEATURE_ALL_COMMANDS = 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128,
+ IPC_FEATURE_ALL_COMMANDS = 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128 | 16384,
IPC_FEATURE_ALL_EVENTS = 256 | 512 | 1024 | 2048 | 4096 | 8192,
IPC_FEATURE_ALL = IPC_FEATURE_ALL_COMMANDS | IPC_FEATURE_ALL_EVENTS,