When I use an XWayland application such as GIMP or Krita, clicking menubar items will often activate an item to the left instead until I move the cursor. It seems like the mouse click event coordinates are not correctly calculated when XWayland scaling is turned off but fractional scaling is turned on.
It only seems to affect menubars as other elements of the UI of those applications react just fine.
How to reproduce
Set xwayland { force_zero_scaling = true } in hyprland.conf.
Apply a fractional screen scale, e.g. monitor=,preferred,auto,1.25.
Open an XWayland application, e.g. GIMP or Krita.
In the topmost menubar of the window click on menus that are located more to the right side (not the first ones).
Do not move the cursor while or after clicking.
Menus to the left of the click event will be activated instead.
Hyprland Version
System/Version info
Hyprland: git e68c07d8096ee5f83e29508c8762279ab80a924b via [official NixOS Flake](https://github.com/hyprwm/hyprland-wiki/blob/27b9014e80ff216327c7a8cdec2a6ac638a31162/pages/Nix/Hyprland%20on%20NixOS.md?plain=1#L78-L93) System: - OS: NixOS 23.11 (Tapir) - GPU: Intel CometLake-U GT2 UHD GraphicsBug or Regression?
Bug
Description
I'm using
and a fractional screen scaling of 1.25.
When I use an XWayland application such as GIMP or Krita, clicking menubar items will often activate an item to the left instead until I move the cursor. It seems like the mouse click event coordinates are not correctly calculated when XWayland scaling is turned off but fractional scaling is turned on.
It only seems to affect menubars as other elements of the UI of those applications react just fine.
How to reproduce
xwayland { force_zero_scaling = true }
inhyprland.conf
.monitor=,preferred,auto,1.25
.Crash reports, logs, images, videos
Menus in Krita:
krita_menus.webm