mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-18 06:59:44 -05:00
Add close command, add close for xwayland
This commit is contained in:
parent
8ff548cdba
commit
972e9dbd1b
6 changed files with 28 additions and 8 deletions
|
|
@ -28,6 +28,10 @@ static void keyboard_binding_execute(struct roots_keyboard *keyboard,
|
|||
struct roots_server *server = keyboard->input->server;
|
||||
if (strcmp(command, "exit") == 0) {
|
||||
wl_display_terminate(server->wl_display);
|
||||
} else if (strcmp(command, "close") == 0) {
|
||||
if (keyboard->input->last_active_view != NULL) {
|
||||
view_close(keyboard->input->last_active_view);
|
||||
}
|
||||
} else if (strncmp(exec_prefix, command, strlen(exec_prefix)) == 0) {
|
||||
const char *shell_cmd = command + strlen(exec_prefix);
|
||||
pid_t pid = fork();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue