mirror of
https://github.com/gwenhael-le-moine/sway-patched-tray-menu.git
synced 2024-12-27 21:58:16 +01:00
Added in kill command
This commit is contained in:
parent
6e8280e7fd
commit
c94c41d1db
1 changed files with 7 additions and 0 deletions
|
@ -188,6 +188,12 @@ static bool cmd_focus_follows_mouse(struct sway_config *config, int argc, char *
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static bool cmd_kill(struct sway_config *config, int argc, char **argv) {
|
||||||
|
swayc_t *view = get_focused_container(&root_container);
|
||||||
|
wlc_view_close(view->handle);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
static bool cmd_layout(struct sway_config *config, int argc, char **argv) {
|
static bool cmd_layout(struct sway_config *config, int argc, char **argv) {
|
||||||
if (!checkarg(argc, "layout", EXPECTED_MORE_THAN, 0)) {
|
if (!checkarg(argc, "layout", EXPECTED_MORE_THAN, 0)) {
|
||||||
return false;
|
return false;
|
||||||
|
@ -345,6 +351,7 @@ static struct cmd_handler handlers[] = {
|
||||||
{ "focus", cmd_focus },
|
{ "focus", cmd_focus },
|
||||||
{ "focus_follows_mouse", cmd_focus_follows_mouse },
|
{ "focus_follows_mouse", cmd_focus_follows_mouse },
|
||||||
{ "fullscreen", cmd_fullscreen },
|
{ "fullscreen", cmd_fullscreen },
|
||||||
|
{ "kill", cmd_kill },
|
||||||
{ "layout", cmd_layout },
|
{ "layout", cmd_layout },
|
||||||
{ "log_colors", cmd_log_colors },
|
{ "log_colors", cmd_log_colors },
|
||||||
{ "reload", cmd_reload },
|
{ "reload", cmd_reload },
|
||||||
|
|
Loading…
Reference in a new issue