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

Commit 8b14987d7db761c042a50177541cdadd774b8a03
Parent: 00d9ec0019dc97c1e15e57f6032e443ad3af2e12
Author: mcol <mcol@posteo.net>
Date: 2021-01-26 21:15:05 +0000
Committer: mcol <mcol@posteo.net>
Committed: 2021-01-26 21:15:05 +0000

move first current_desk allocation into desk.c

src/main.c Modified

@@ -146,7 +146,6 @@
     wl_list_init(&wimp.mouse_bindings);
     wl_list_init(&wimp.marks);
     add_desk();
-    wimp.current_desk = wl_container_of(wimp.desks.next, wimp.current_desk, link);
 
     // configure
     locate_config();

src/desk.c Modified

@@ -17,6 +17,10 @@
     desk->zoom = 1;
     desk->fullscreened = NULL;
     wimp.desk_count++;
+
+    if (!wimp.current_desk) {
+	wimp.current_desk = wl_container_of(wimp.desks.next, wimp.current_desk, link);
+    }
 }