wails icon indicating copy to clipboard operation
wails copied to clipboard

[v3/Linux] Cursor warps to attached systray window on second click under Hyprland

Open taliesin-ai opened this issue 4 months ago • 0 comments

Wails version family

v3

Operating System

Linux, Hyprland, GTK4/Wayland

Description

With a window attached to a system tray icon, the second tray-icon click can warp the cursor to the centre of the attached window.

This was migrated from the repository's retired local beads tracker (wails-webview2gtk6-e8m). It was recorded on 6 January 2026 and had not been linked to a GitHub issue. It still needs reproduction on current master / the current v3 prerelease.

To reproduce

  1. Run a v3 systray application with an attached popup window under Hyprland.
  2. Click the tray icon: the window appears and the cursor remains in place.
  3. Click the tray icon again.

Expected behaviour

The attached window toggles without moving the pointer.

Actual behaviour

The window hides and shows, and the cursor moves to the window centre.

Using an explicit menu action to show the window reportedly does not cause the warp. The original note suspected an interaction between attached-window positioning and Hyprland focus handling.

Triage notes

  • Confirm on current Hyprland and another Wayland compositor.
  • Check whether PositionWindow() or focus acquisition triggers the pointer movement.
  • Treat as a low-priority cosmetic issue unless it causes lost input or broader compositor regressions.

taliesin-ai avatar Jul 29 '26 01:07 taliesin-ai