2zw

2zw - X11 Windowmanager

Files | Log | Commits | Refs | README


1ec5076

Author: erikbackman

Date: 2024-02-22

Subject: comments

Diff

commit 1ec5076e1f37bec78e5deffedbc04a6c1bbd71c1
Author: erikbackman <erikbackman@users.noreply.github.com>
Date:   Thu Feb 22 23:02:40 2024 +0100

    comments

diff --git a/src/main.zig b/src/main.zig
index 4de2e39..253b199 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -104,7 +104,7 @@ var list = L{};
 var cursor: ?*L.Node = null; // having the cursor be nullable is annoying..
 
 // IMPROVE: Keeping a pointer to previously_focused window as the previs node in the window list
-// may or may not be the previously focused one.
+// may or may not be the previously focused one -- because a circular dl list is used.
 var previously_focused: ?*L.Node = undefined;
 
 fn addClient(allocator: std.mem.Allocator, window: C.Window) !*L.Node {