tony / oxwm

Fixed justfile and added cursor. I was gaslit by cached binaries. Browse files
tonybtw committed 2025-10-12 parent 820f2c6 commit 9b07b6cd38136a10cc7075323161424a3f1d01d3
Showing 2 changed files with 9 additions and 5 deletions. UnifiedSplit
+2 −2 justfile
@@ -17,9 +17,9 @@ clean:
17 17
18 test: 18 test:
19 pkill Xephyr || true 19 pkill Xephyr || true
20 + rm -rf ~/.cache/oxwm
20 Xephyr -screen 1280x800 :1 & sleep 1 21 Xephyr -screen 1280x800 :1 & sleep 1
21 - DISPLAY=:1 cargo run -- --init 22 + DISPLAY=:1 cargo run --release
22 - DISPLAY=:1 ~/.cache/oxwm/oxwm-binary
23 23
24 init: 24 init:
25 cargo run -- --init 25 cargo run -- --init
+7 −3 src/window_manager.rs
@@ -42,9 +42,13 @@ impl WindowManager {
42 let root = connection.setup().roots[screen_number].root; 42 let root = connection.setup().roots[screen_number].root;
43 let screen = connection.setup().roots[screen_number].clone(); 43 let screen = connection.setup().roots[screen_number].clone();
44 44
45 - let cursor_handle = 45 + let normal_cursor = CursorHandle::new(
46 - CursorHandle::new(&connection, screen_number, &Default::default())?.reply()?; 46 + &connection,
47 - let normal_cursor = cursor_handle.load_cursor(&connection, "left_ptr")?; 47 + screen_number,
48 + &x11rb::resource_manager::new_from_default(&connection)?,
49 + )?
50 + .reply()?
51 + .load_cursor(&connection, "left_ptr")?;
48 52
49 connection 53 connection
50 .change_window_attributes( 54 .change_window_attributes(