Commit 77f0123d758926d2ff4b122e1901f2f4009ae62c Parent: 0cf9a850c1dbf81466a1b77c9f55610de567320d Author: mcol <mcol@posteo.net> Date: 2021-02-06 23:32:22 +0000 Committer: mcol <mcol@posteo.net> Committed: 2021-02-06 23:32:22 +0000 go to the first desk when removing the last desk
src/desk.c Modified
@@ -26,7 +26,7 @@ static void remove_desk() { - struct desk *last = wl_container_of(wimp.desks.next, last, link); + struct desk *last = wl_container_of(wimp.desks.prev, last, link); if (last == wimp.current_desk) { set_desk(wl_container_of(wimp.desks.next, last, link)); } @@ -34,7 +34,6 @@ wl_list_for_each_safe(view, tview, &last->views, link) { view_to_desk(view, 0); }; - wl_list_init(&last->link); wl_list_remove(&last->link); free(last->wallpaper); free(last);