Wayland: mouse click offset on external monitor with fractional scaling enabled

When using GNOME on Wayland with fractional scaling enabled
(scale-monitor-framebuffer), mouse pointer clicks are registered at incorrect
positions on an external monitor.

The issue occurs consistently in XWayland applications, including:

  • JetBrains IDEs (Java/Swing)
  • Docker Desktop (Electron)

Native Wayland applications appear unaffected.
The internal laptop display works correctly; the issue only affects the
external monitor.

Monitor configuration:

  • Internal display: 2880x1800 @ 90 Hz, scale 166%
  • External display (Dell 24"): 1920x1080 @ 60 Hz, scale 100%
  • External monitor connected via HDMI/USB-C

Steps to reproduce:

  1. Log in to GNOME on Wayland
  2. Enable fractional scaling (scale-monitor-framebuffer)
  3. Set internal display scale >100% and external display to 100%
  4. Open an XWayland application on the external monitor
  5. Click UI elements → mouse click offset observed
   ~  fastfetch                                                                 ✔  10:16:41 
             .',;::::;,'.                 markiianhoinets@fedora
         .';:cccccccccccc:;,.             ----------------------
      .;cccccccccccccccccccccc;.          OS: Fedora Linux 43 (Workstation Edition) x86_64
    .:cccccccccccccccccccccccccc:.        Host: Vivobook_ASUSLaptop M3401QC_M3401QC (1.0)
  .;ccccccccccccc;.:dddl:.;ccccccc;.      Kernel: Linux 6.18.4-200.fc43.x86_64
 .:ccccccccccccc;OWMKOOXMWd;ccccccc:.     Uptime: 1 hour, 29 mins
.:ccccccccccccc;KMMc;cc;xMMc;ccccccc:.    Packages: 2181 (rpm), 17 (flatpak)
,cccccccccccccc;MMM.;cc;;WW:;cccccccc,    Shell: zsh 5.9
:cccccccccccccc;MMM.;cccccccccccccccc:    Display (SDC4154): 2880x1800 @ 1.67x in 14", 90 Hz [Built*
:ccccccc;oxOOOo;MMM000k.;cccccccccccc:    Display (Dell Inc. 24"): 1920x1080 in 24", 60 Hz [Externa]
cccccc;0MMKxdd:;MMMkddc.;cccccccccccc;    DE: GNOME 49.2
ccccc;XMO';cccc;MMM.;cccccccccccccccc'    WM: Mutter (Wayland)
ccccc;MMo;ccccc;MMW.;ccccccccccccccc;     WM Theme: Adwaita
ccccc;0MNc.ccc.xMMd;ccccccccccccccc;      Theme: Adwaita [GTK2/3/4]
cccccc;dNMWXXXWM0:;cccccccccccccc:,       Icons: Adwaita [GTK2/3/4]
cccccccc;.:odl:.;cccccccccccccc:,.        Font: Adwaita Sans (11pt) [GTK2/3/4]
ccccccccccccccccccccccccccccc:'.          Cursor: Adwaita (24px)
:ccccccccccccccccccccccc:;,..             Terminal: alacritty 0.16.1
 ':cccccccccccccccc::;,.                  Terminal Font: monospace (18pt, Regular)
                                          CPU: AMD Ryzen 5 5600H (12) @ 4.28 GHz
                                          GPU 1: NVIDIA GeForce RTX 3050 Mobile [Discrete]
                                          GPU 2: AMD Radeon Vega Series / Radeon Vega Mobile Series]
                                          Memory: 12.12 GiB / 15.02 GiB (81%)
                                          Swap: 6.89 GiB / 8.00 GiB (86%)
                                          Disk (/): 42.60 GiB / 474.35 GiB (9%) - btrfs
                                          Local IP (wlp2s0): 192.168.81.154/23
                                          Battery (ASUS Battery): 100% [AC Connected]
                                          Locale: en_US.UTF-


Does enabling xwayland-native scaling change anything?
gsettings set org.gnome.mutter experimental-features "['scale-monitor-framebuffer', 'xwayland-native-scaling']"

2 Likes

Thanks, now everything works totally fine.

2 Likes