Closed Bug 1707533 Opened 4 years ago Closed 4 years ago

[wayland] Custom cursors are downscaled in HiDPI

Categories

(Core :: Widget: Gtk, defect)

defect

Tracking

()

RESOLVED FIXED
90 Branch
Tracking Status
firefox90 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

Attached file testcase

The test-case attached behaves differently on Wayland than on any other platform when in HiDPI. On wayland, it shrinks by the DPI scale, but on X11 / Windows / Mac it doesn't

It seems GTK downscales the cursor if the resolution is less than the
device scale, so this makes it consistent with X11 and all other desktop
platforms.

On the example on the bug it seems silly because the cursor is massive,
but on legit examples like:

https://downloads.scirra.com/labs/bugs/cursor-image-set/

This makes the cursor not abruptly change sizes when page zoom changes
for example.

Assignee: nobody → emilio
Status: NEW → ASSIGNED
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a19cf8b431ce Make Wayland custom cursors behave like all other platforms. r=stransky
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 90 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: