mirror of
https://github.com/swaywm/sway.git
synced 2025-11-02 09:01:40 -05:00
Revert "new_workspace null behavior + testmap functions + regex"
This reverts commit e1d18e42a8.
Fixes #180
cc @taiyu-len
This commit is contained in:
parent
9c8f1fb964
commit
e505abfe75
12 changed files with 374 additions and 585 deletions
|
|
@ -3,21 +3,19 @@
|
|||
#include <stdbool.h>
|
||||
#include "config.h"
|
||||
|
||||
typedef enum cmd_status {
|
||||
CMD_SUCCESS,
|
||||
CMD_FAILURE,
|
||||
CMD_DEFER,
|
||||
} sway_cmd(char *criteria, int argc, char **argv);
|
||||
|
||||
struct cmd_handler {
|
||||
const char*command;
|
||||
sway_cmd *handle;
|
||||
char *command;
|
||||
enum cmd_status {
|
||||
CMD_SUCCESS,
|
||||
CMD_FAILURE,
|
||||
CMD_DEFER,
|
||||
} (*handle)(int argc, char **argv);
|
||||
};
|
||||
|
||||
enum cmd_status handle_command(char *command);
|
||||
// Handles commands during config
|
||||
enum cmd_status config_command(char *command);
|
||||
|
||||
void remove_view_from_scratchpad(swayc_t *view);
|
||||
void remove_view_from_scratchpad();
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue