diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index d5d9c82..4df37f2 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -76,7 +76,7 @@ fn show_window_at_cursor(window: &WebviewWindow) { // Try to get cursor position - this may fail on Wayland let cursor_result = window.cursor_position(); - + match cursor_result { Ok(cursor_pos) => { // X11 or XWayland - we can position at cursor diff --git a/src/components/DragHandle.tsx b/src/components/DragHandle.tsx index f3d2701..6cf0d64 100644 --- a/src/components/DragHandle.tsx +++ b/src/components/DragHandle.tsx @@ -9,7 +9,7 @@ export function DragHandle() { const handleMouseDown = async (e: React.MouseEvent) => { // Only handle left mouse button if (e.button !== 0) return - + try { await getCurrentWindow().startDragging() } catch (error) { @@ -25,9 +25,9 @@ export function DragHandle() { className="w-full flex justify-center pt-2 pb-1 cursor-grab active:cursor-grabbing select-none" onMouseDown={handleMouseDown} > -
)