mirror of
https://github.com/swaywm/sway.git
synced 2026-03-16 05:34:10 -04:00
basic command criteria
This commit is contained in:
parent
c353e01c85
commit
6a1d71b8b8
8 changed files with 549 additions and 9 deletions
|
|
@ -15,7 +15,13 @@ struct cmd_results *cmd_kill(int argc, char **argv) {
|
|||
return cmd_results_new(CMD_FAILURE, NULL, "no seat context given");
|
||||
}
|
||||
|
||||
struct sway_view *view = seat->focus->sway_view;
|
||||
struct sway_view *view = NULL;
|
||||
|
||||
if (config->handler_context.current_container) {
|
||||
view = config->handler_context.current_container->sway_view;
|
||||
} else {
|
||||
view = seat->focus->sway_view;
|
||||
}
|
||||
|
||||
if (view->iface.close) {
|
||||
view->iface.close(view);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue