WillPower3309 / swayfx

SwayFX: Sway, but with eye candy!
MIT License
1.18k stars 48 forks source link

Swayfx mouse warping crashing Waybar when clicking on a window in wlr/taskbar #233

Open CDTay opened 7 months ago

CDTay commented 7 months ago

I posted this in the Waybar issue tracker already, but the issue only started happening once I switched from Hyprland to SwayFX despite mouse warping being activated on Hyprland, so it seems like related to switching to SwayFX meaning this may be a more relevant place.

When booting Waybar with the terminal, and using the wlr/taskbar module, it will often crash upon clicking one of the open window icons. It works for a while, but after a random amount of time (usually less than a minute) the next click on a taskbar icon will crash waybar. I moved to Sway from Hyprland, and didn't have the same issue with Hyprland, so I'm not quite sure what difference has caused this to start happening.

Below is the output waybar gives on the console when it crashes:

(waybar:9909): Gdk-CRITICAL **: 14:35:15.897: gdk_wayland_window_get_wl_surface: assertion 'GDK_IS_WAYLAND_WINDOW (window)' failed

Gdk-Message: 14:35:15.897: Error 22 (Invalid argument) dispatching to Wayland display.

Currently using Arch

I also have it set in Sway so that my mouse warps to the focused container, could be related to some incorrectly configured click and drag event? After setting mouse_warping to none in ~/.config/sway/config it seems to have stopped, so my best guess is that it's related to sway moving the mouse at the same time the window is activated?