oxwm

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

Fixed no cursor issue

Commit
fc65b0e94326fae84f4573087080f31d6047e1b9
Parent
2a70554
Author
tonybanters <tonybanters@gmail.com>
Date
2026-01-15 19:45:54

Diff

diff --git a/src/bar/bar.rs b/src/bar/bar.rs
index 68bfebe..a0c89ee 100644
--- a/src/bar/bar.rs
+++ b/src/bar/bar.rs
@@ -44,6 +44,7 @@ impl Bar {
         x: i16,
         y: i16,
         width: u16,
+        cursor: u32,
     ) -> Result<Self, X11Error> {
         let window = connection.generate_id()?;
         let graphics_context = connection.generate_id()?;
@@ -64,7 +65,8 @@ impl Bar {
             &CreateWindowAux::new()
                 .background_pixel(config.scheme_normal.background)
                 .event_mask(EventMask::EXPOSURE | EventMask::BUTTON_PRESS)
-                .override_redirect(1),
+                .override_redirect(1)
+                .cursor(cursor),
         )?;
 
         connection.create_gc(
diff --git a/src/tab_bar.rs b/src/tab_bar.rs
index cb0f35e..9513584 100644
--- a/src/tab_bar.rs
+++ b/src/tab_bar.rs
@@ -32,6 +32,7 @@ impl TabBar {
         width: u16,
         scheme_normal: ColorScheme,
         scheme_selected: ColorScheme,
+        cursor: u32,
     ) -> Result<Self, X11Error> {
         let window = connection.generate_id()?;
         let graphics_context = connection.generate_id()?;
@@ -52,7 +53,8 @@ impl TabBar {
             &CreateWindowAux::new()
                 .background_pixel(scheme_normal.background)
                 .event_mask(EventMask::EXPOSURE | EventMask::BUTTON_PRESS)
-                .override_redirect(1),
+                .override_redirect(1)
+                .cursor(cursor),
         )?;
 
         connection.create_gc(
diff --git a/src/window_manager.rs b/src/window_manager.rs
index 06b3f72..09e7155 100644
--- a/src/window_manager.rs
+++ b/src/window_manager.rs
@@ -270,6 +270,7 @@ impl WindowManager {
                 monitor.screen_x as i16,
                 monitor.screen_y as i16,
                 monitor.screen_width as u16,
+                normal_cursor,
             )?;
             bars.push(bar);
         }
@@ -290,6 +291,7 @@ impl WindowManager {
                     .saturating_sub(2 * config.gap_outer_horizontal as i32) as u16,
                 config.scheme_occupied,
                 config.scheme_selected,
+                normal_cursor,
             )?;
             tab_bars.push(tab_bar);
         }