Bug 1265799

Summary: hidpi/wayland: mouse cursor too big in gnome-shell and xwayland clients
Product: [Fedora] Fedora Reporter: Fabio Valentini <decathorpe>
Component: mutterAssignee: Florian Müllner <fmuellner>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 23CC: bob1211, fmuellner, mcatanzaro+wrong-account-do-not-cc, otaylor, walters
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-10-12 13:50:12 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
screenshot documenting 4x size cursor none

Description Fabio Valentini 2015-09-23 19:20:36 UTC
Created attachment 1076289 [details]
screenshot documenting 4x size cursor

Description of problem:
start gnome wayland session (but also occurs at gdm login screen)

Hardware:
intel graphics (i7-4500U CPU, HD 4?00, Haswell)


Version-Release number of selected component (if applicable):
mutter-3.17.92-1.fc23.x86_64
gnome-shell-3.17.92-1.fc23.x86_64


Actual results:
cursor is not only scaled up to 2x pixel-size, but 4x pixel-size for gnome-shell and xwayland clients (e.g. google chrome). hovering over wayland clients (regular gnome applications, e.g. nautilus, gnome-terminal, etc.), the cursor returns to correct size (scaled to 2x).

the attached screenshot shows huge cursor in gnome-shell, not pointing at any particular window.

Comment 1 Robert Ma 2015-10-09 19:50:23 UTC
I have the same issue under GNOME 3.18 (Wayland):

mutter 3.18.0
gnome-shell 3.18.0
gtk3 3.18.1

To sum up, assuming the default cursor size under normal DPI is 1x. Then on a HiDPI display, cursor size is 2x in nautilus, which is desired; however, in Firefox or GNOME Shell (also in the GNOME login screen, which uses Wayland by default now), cursor size is 4x. It seems there are some duplicate logic in terms of handling HiDPI cursor scaling, which causes the cursor size to be doubled twice.

By the way, when the cursor size is 4x, the cursor moving speed is also much slower.

Comment 2 Michael Catanzaro 2015-10-12 13:50:12 UTC

*** This bug has been marked as a duplicate of bug 1268495 ***