mirror of
https://github.com/swaywm/sway.git
synced 2026-04-17 06:46:32 -04:00
add HAVE_TRAY guard in tray_last command
This commit is contained in:
parent
1b2e930cb9
commit
e445fc1344
1 changed files with 5 additions and 0 deletions
|
|
@ -5,6 +5,7 @@
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
|
||||||
struct cmd_results *bar_cmd_tray_last(int argc, char **argv) {
|
struct cmd_results *bar_cmd_tray_last(int argc, char **argv) {
|
||||||
|
#if HAVE_TRAY
|
||||||
struct cmd_results *error = NULL;
|
struct cmd_results *error = NULL;
|
||||||
sway_log(SWAY_DEBUG, "Checking tray_last command");
|
sway_log(SWAY_DEBUG, "Checking tray_last command");
|
||||||
if ((error = checkarg(argc,
|
if ((error = checkarg(argc,
|
||||||
|
|
@ -26,4 +27,8 @@ struct cmd_results *bar_cmd_tray_last(int argc, char **argv) {
|
||||||
}
|
}
|
||||||
|
|
||||||
return cmd_results_new(CMD_SUCCESS, NULL);
|
return cmd_results_new(CMD_SUCCESS, NULL);
|
||||||
|
#else
|
||||||
|
return cmd_results_new(CMD_INVALID,
|
||||||
|
"Sway has been compiled without tray support");
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue