use wayland_protocols_wlr::layer_shell::v1::client::{
zwlr_layer_shell_v1::{self, Layer},
14
-
zwlr_layer_surface_v1::{self, Anchor},
14
+
zwlr_layer_surface_v1::{self, KeyboardInteractivity},
use wayland_protocols::xdg::shell::client::xdg_wm_base;
171
-
layer.set_anchor(Anchor::Top | Anchor::Right | Anchor::Bottom | Anchor::Left);
172
-
layer.set_keyboard_interactivity(zwlr_layer_surface_v1::KeyboardInteractivity::None);
170
+
// Center the window - remove anchors to allow free positioning
171
+
// layer.set_anchor(Anchor::empty()); // No anchors for centering
172
+
layer.set_keyboard_interactivity(KeyboardInteractivity::None);
layer.set_size(self.cursor_width, self.cursor_height);
// A negative value means we will be centered on the screen
// independently of any other xdg_layer_shell