aboutsummaryrefslogtreecommitdiff
path: root/sway/commands/bar/activate_button.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-04-12 20:19:54 -0400
committerDrew DeVault <sir@cmpwn.com>2018-04-12 20:19:54 -0400
commitcd1b32453a9296c18b28bff71607aeb22987b5cd (patch)
treec653c6d525b471914c01a9d7ae543f521b6138ed /sway/commands/bar/activate_button.c
parent8e06985cc1b479724446fba752e0fecfb998e87b (diff)
parent5785170421dc38437acde8bb61068cd16fda716c (diff)
Merge branch 'wlroots'
Diffstat (limited to 'sway/commands/bar/activate_button.c')
-rw-r--r--sway/commands/bar/activate_button.c22
1 files changed, 2 insertions, 20 deletions
diff --git a/sway/commands/bar/activate_button.c b/sway/commands/bar/activate_button.c
index 32a1d3e5..7310e7ec 100644
--- a/sway/commands/bar/activate_button.c
+++ b/sway/commands/bar/activate_button.c
@@ -3,24 +3,6 @@
#include "log.h"
struct cmd_results *bar_cmd_activate_button(int argc, char **argv) {
- const char *cmd_name = "activate_button";
-#ifndef ENABLE_TRAY
- return cmd_results_new(CMD_INVALID, cmd_name, "Invalid %s command "
- "%s called, but sway was compiled without tray support",
- cmd_name, cmd_name);
-#else
- struct cmd_results *error = NULL;
- if ((error = checkarg(argc, cmd_name, EXPECTED_EQUAL_TO, 1))) {
- return error;
- }
-
- if (!config->current_bar) {
- return cmd_results_new(CMD_FAILURE, cmd_name, "No bar defined.");
- }
-
- // User should be able to prefix with 0x or whatever they want
- config->current_bar->secondary_button = strtoul(argv[0], NULL, 0);
-
- return cmd_results_new(CMD_SUCCESS, NULL, NULL);
-#endif
+ // TODO TRAY
+ return cmd_results_new(CMD_INVALID, "activate_button", "TODO TRAY");
}