Summary: | Metabug: Inconsistent cursor size on Wayland | ||
---|---|---|---|
Product: | [Plasma] kwin | Reporter: | Vlad Zahorodnii <vlad.zahorodnii> |
Component: | wayland-generic | Assignee: | KWin default assignee <kwin-bugs-null> |
Status: | CONFIRMED --- | ||
Severity: | task | CC: | ad.liu.jin, agurenko, aoeui, audvare, bizyaev, contijn.buijs, d_debnath, el, fanzhuyifan, frederic.parrenin, gardenofglass54, ggendron, guimarcalsilva, indecisiveautomator, jchevarley, jkcdarunday, kde, kde, madness742, me, milakam, miranda, nate, nwestervelt, postix, pprkut, s2, stephenackerman16, thiago, xll520yzl |
Priority: | NOR | Keywords: | wayland-only |
Version First Reported In: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
See Also: | https://bugs.kde.org/show_bug.cgi?id=489049 | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Bug Depends on: | 435728, 448555, 451158 | ||
Bug Blocks: |
Description
Vlad Zahorodnii
2022-09-15 13:39:17 UTC
*** Bug 443661 has been marked as a duplicate of this bug. *** *** Bug 451158 has been marked as a duplicate of this bug. *** *** Bug 459146 has been marked as a duplicate of this bug. *** *** Bug 448555 has been marked as a duplicate of this bug. *** Now after a gtk3 upgrade (possibly from https://gitlab.gnome.org/GNOME/gtk/-/commit/75d3095a6bb0001682be37c6bb4d42e9bb115d39 ). The cursor is 3 times as big on gtk windows compared to rest of the desktop. Using 24 cursor size and 250% global scaling. Following warnings are printed by gtk apps. (firefox:7952): Gdk-WARNING **: 05:56:17.970: ../gtk/gdk/wayland/gdkcursor-wayland.c:242 cursor image size (64x64) not an integermultiple of scale (3) Any idea how this can be fixed. It is now hard to use gtk apps with the massive cursor (In reply to nocturne from comment #5) > Now after a gtk3 upgrade (possibly from > https://gitlab.gnome.org/GNOME/gtk/-/commit/ > 75d3095a6bb0001682be37c6bb4d42e9bb115d39 ). The cursor is 3 times as big on > gtk windows compared to rest of the desktop. Using 24 cursor size and 250% > global scaling. Following warnings are printed by gtk apps. > > (firefox:7952): Gdk-WARNING **: 05:56:17.970: > ../gtk/gdk/wayland/gdkcursor-wayland.c:242 cursor image size (64x64) not an > integermultiple of scale (3) > Any idea how this can be fixed. It is now hard to use gtk apps with the > massive cursor It can be fixed by manually editing ~/.config/gtk-3.0/settings.ini and change the line: gtk-cursor-theme-size=24 to gtk-cursor-theme-size=8 *** Bug 435728 has been marked as a duplicate of this bug. *** *** Bug 471001 has been marked as a duplicate of this bug. *** I use 36px Breeze cursors at 200% scale. I have rebooted after changing the size from 24px to 36px. ~/.config/gtk-3.0/settings.ini and ~/.config/gtk-4.0/settings.ini both say `gtk-cursor-theme-size=36` ~/.config/kcminputrc says `cursorSize=36` Here's what I see: - Over KWin-drawn titlebars, the cursor is 36px - Over Plasma and KDE apps, the cursor is 48px - Over GTK apps, the cursor is 24px It's a bit of a mess. :) *** Bug 474430 has been marked as a duplicate of this bug. *** There has been a GTK4 bug, which caused cursor sizes to be too big under Plasma Wayland * https://gitlab.gnome.org/GNOME/gtk/-/issues/7031 However, the fixe(s) * https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/7760 won't be backported to the Gtk 4.16 stable branch as of * https://gitlab.gnome.org/GNOME/gtk/-/issues/7031#note_2234757 > They rely on viewporter support for pointer surfaces, and mutter still does not support that ^ https://gitlab.gnome.org/GNOME/mutter/-/issues/2633 > Support wp_viewport for cursor surfaces *** Bug 474603 has been marked as a duplicate of this bug. *** *** Bug 478277 has been marked as a duplicate of this bug. *** *** Bug 498387 has been marked as a duplicate of this bug. *** Sorry if this is the wrong place to point this out, but it seems like cursor sizes can also differ on the plasma taskbar itself for the same plasma version if you change themes and DPI scale in the "wrong" order, see #498387 . I think my issue is related to this bug, so I'll put this here instead of creating a new bug report: I have an xcursor theme of size 32px x 32px (only size available) and the size of the cursor matches that when my cursor hovers over windows running under XWayland (ex. VLC) or GTK windows (ex. Firefox) but is a smaller size in all other cases. Those other cases include hovering over the titlebar of windows, the plasma desktop (background / plasma panel), and native Wayland apps not using GTK. I'm using Plasma 6.2.4 with Wayland and below is the specific cursor theme in use: https://store.kde.org/p/1914275/ |