tony / oxwm

tonybanters committed 2026-01-15 parent 51a0f9d commit 5b55c468f1591e447ae4f90319802a7c1dc8e4bf
Showing 2 changed files with 12 additions and 4 deletions. UnifiedSplit
+6 −2 src/bar/bar.rs
@@ -65,8 +65,7 @@ impl Bar {
65 65 &CreateWindowAux::new()
66 66 .background_pixel(config.scheme_normal.background)
67 67 .event_mask(EventMask::EXPOSURE | EventMask::BUTTON_PRESS)
68 - .override_redirect(1)
69 - .cursor(cursor),
68 + .override_redirect(1),
70 69 )?;
71 70
72 71 connection.create_gc(
@@ -77,6 +76,11 @@ impl Bar {
77 76 .background(config.scheme_normal.background),
78 77 )?;
79 78
79 + // Set cursor using xlib after window creation
80 + unsafe {
81 + x11::xlib::XDefineCursor(display, window as u64, cursor as u64);
82 + }
83 +
80 84 connection.map_window(window)?;
81 85 connection.flush()?;
82 86
+6 −2 src/tab_bar.rs
@@ -53,8 +53,7 @@ impl TabBar {
53 53 &CreateWindowAux::new()
54 54 .background_pixel(scheme_normal.background)
55 55 .event_mask(EventMask::EXPOSURE | EventMask::BUTTON_PRESS)
56 - .override_redirect(1)
57 - .cursor(cursor),
56 + .override_redirect(1),
58 57 )?;
59 58
60 59 connection.create_gc(
@@ -65,6 +64,11 @@ impl TabBar {
65 64 .background(scheme_normal.background),
66 65 )?;
67 66
67 + // Set cursor using xlib after window creation
68 + unsafe {
69 + x11::xlib::XDefineCursor(display, window as u64, cursor as u64);
70 + }
71 +
68 72 connection.map_window(window)?;
69 73 connection.flush()?;
70 74