Commit aa7ab1a348e62e41d361b2e2bd589cf6f99e7af1 Parent: 357da79563a597762f7cf8b1a714054ff72fbbe2 Author: mcol <mcol@posteo.net> Date: 2021-02-12 09:38:36 +0000 Committer: mcol <mcol@posteo.net> Committed: 2021-02-12 09:38:36 +0000 pan to view when trying to focus in direction even if none found
src/action.c Modified
@@ -70,8 +70,9 @@ void focus_in_direction(void *data) { - if (wl_list_empty(&wimp.current_desk->views)) + if (wl_list_empty(&wimp.current_desk->views)) { return; + } struct view *current = wl_container_of(wimp.current_desk->views.next, current, link); enum direction dir = *(enum direction*)data; @@ -107,6 +108,9 @@ unfullscreen(); pan_to_view(next); focus_view(next, NULL); + } else { + pan_to_view(current); + focus_view(current, NULL); } }