oxwm

https://git.tonybtw.com/oxwm.git git://git.tonybtw.com/oxwm.git

Fixed justfile and added cursor. I was gaslit by cached binaries.

Commit
9b07b6cd38136a10cc7075323161424a3f1d01d3
Parent
820f2c6
Author
tonybtw <tonybtw@tonybtw.com>
Date
2025-10-12 08:35:59

Diff

diff --git a/justfile b/justfile
index 110d5d4..c3760dd 100644
--- a/justfile
+++ b/justfile
@@ -17,9 +17,9 @@ clean:
 
 test:
     pkill Xephyr || true
+    rm -rf ~/.cache/oxwm  
     Xephyr -screen 1280x800 :1 & sleep 1
-    DISPLAY=:1 cargo run -- --init
-    DISPLAY=:1 ~/.cache/oxwm/oxwm-binary
+    DISPLAY=:1 cargo run --release  
 
 init:
     cargo run -- --init
diff --git a/src/window_manager.rs b/src/window_manager.rs
index 692e017..d211978 100644
--- a/src/window_manager.rs
+++ b/src/window_manager.rs
@@ -42,9 +42,13 @@ impl WindowManager {
         let root = connection.setup().roots[screen_number].root;
         let screen = connection.setup().roots[screen_number].clone();
 
-        let cursor_handle =
-            CursorHandle::new(&connection, screen_number, &Default::default())?.reply()?;
-        let normal_cursor = cursor_handle.load_cursor(&connection, "left_ptr")?;
+        let normal_cursor = CursorHandle::new(
+            &connection,
+            screen_number,
+            &x11rb::resource_manager::new_from_default(&connection)?,
+        )?
+        .reply()?
+        .load_cursor(&connection, "left_ptr")?;
 
         connection
             .change_window_attributes(