mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
Remove input.last_active_view
This commit is contained in:
parent
4bee96bd30
commit
315c01ba0f
4 changed files with 5 additions and 7 deletions
|
|
@ -29,8 +29,10 @@ static void keyboard_binding_execute(struct roots_keyboard *keyboard,
|
|||
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);
|
||||
if (server->desktop->views->length > 0) {
|
||||
struct roots_view *view =
|
||||
server->desktop->views->items[server->desktop->views->length-1];
|
||||
view_close(view);
|
||||
}
|
||||
} else if (strcmp(command, "next_window") == 0) {
|
||||
if (server->desktop->views->length > 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue