gimp but for windows: a wayland compositor
git clone https://github.com/m-col/wimp
Files | Refs | Readme

Commit a67279bba21986bb4fcef4ab55588d416dd7607a
Parent: 999244497dac7de9a0cdb915b5827fe359c79e8a
Author: mcol <mcol@posteo.net>
Date: 2021-02-11 21:53:10 +0000
Committer: mcol <mcol@posteo.net>
Committed: 2021-02-11 21:53:10 +0000

focus next view when unmapping

src/shell.c Modified

@@ -205,7 +205,7 @@
     if (!wl_list_empty(&wimp.current_desk->views)) {
 	struct view *next = wl_container_of(wimp.current_desk->views.next, view, link);
 	if (view != next) {
-	    focus_view(view, view->surface->surface);
+	    focus_view(next, next->surface->surface);
 	    return;
 	}
     };