mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
Make the close command use roots_seat_get_focus, rename a few symbols
This commit is contained in:
parent
a8b31da52c
commit
bf41e7a794
5 changed files with 17 additions and 18 deletions
|
|
@ -91,10 +91,9 @@ static void keyboard_binding_execute(struct roots_keyboard *keyboard,
|
|||
if (strcmp(command, "exit") == 0) {
|
||||
wl_display_terminate(keyboard->input->server->wl_display);
|
||||
} else if (strcmp(command, "close") == 0) {
|
||||
if (!wl_list_empty(&seat->views)) {
|
||||
struct roots_seat_view *first_seat_view = wl_container_of(
|
||||
seat->views.next, first_seat_view, link);
|
||||
view_close(first_seat_view->view);
|
||||
struct roots_view *focus = roots_seat_get_focus(seat);
|
||||
if (focus != NULL) {
|
||||
view_close(focus);
|
||||
}
|
||||
} else if (strcmp(command, "next_window") == 0) {
|
||||
if (!wl_list_empty(&seat->views)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue