<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>459161</bug_id>
          
          <creation_ts>2022-09-15 13:39:17 +0000</creation_ts>
          <short_desc>Metabug: Inconsistent cursor size on Wayland</short_desc>
          <delta_ts>2026-10-25 22:05:10 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Plasma</classification>
          <product>kwin</product>
          <component>wayland-generic</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CONFIRMED</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.kde.org/show_bug.cgi?id=489049</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>wayland-only</keywords>
          <priority>NOR</priority>
          <bug_severity>task</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>435728</dependson>
    
    <dependson>448555</dependson>
    
    <dependson>451158</dependson>
    
    <dependson>510510</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Vlad Zahorodnii">vlad.zahorodnii</reporter>
          <assigned_to name="KWin default assignee">kwin-bugs-null</assigned_to>
          <cc>ad.liu.jin</cc>
    
    <cc>aeva.ntsc</cc>
    
    <cc>alex</cc>
    
    <cc>aoeui</cc>
    
    <cc>audvare</cc>
    
    <cc>bizyaev</cc>
    
    <cc>contijn.buijs</cc>
    
    <cc>d_debnath</cc>
    
    <cc>el</cc>
    
    <cc>fanzhuyifan</cc>
    
    <cc>frederic.parrenin</cc>
    
    <cc>gardenofglass54</cc>
    
    <cc>ggendron</cc>
    
    <cc>guimarcalsilva</cc>
    
    <cc>indecisiveautomator</cc>
    
    <cc>jchevarley</cc>
    
    <cc>jkcdarunday</cc>
    
    <cc>kde</cc>
    
    <cc>kde</cc>
    
    <cc>kdedev</cc>
    
    <cc>madness742</cc>
    
    <cc>me</cc>
    
    <cc>milakam</cc>
    
    <cc>miranda</cc>
    
    <cc>nate</cc>
    
    <cc>NordiskGeit</cc>
    
    <cc>nwestervelt</cc>
    
    <cc>postix</cc>
    
    <cc>pprkut</cc>
    
    <cc>s2</cc>
    
    <cc>stephenackerman16</cc>
    
    <cc>thiago</cc>
    
    <cc>xll520yzl</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2152911</commentid>
    <comment_count>0</comment_count>
    <who name="Vlad Zahorodnii">vlad.zahorodnii</who>
    <bug_when>2022-09-15 13:39:17 +0000</bug_when>
    <thetext>Meta bug report to track inconsistent cursor size issues in Plasma Wayland session.

Xcursor themes don&apos;t support HIDPI natively, so the compositor and apps multiply cursor size by the scale factor, however they all use different strategies for handling the case when the cursor theme has no requested size, some fallback to the closest cursor size, some fallback to default size 24, etc. This results in inconsistent cursor size when moving the cursor between windows.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2152913</commentid>
    <comment_count>1</comment_count>
    <who name="Vlad Zahorodnii">vlad.zahorodnii</who>
    <bug_when>2022-09-15 13:39:29 +0000</bug_when>
    <thetext>*** Bug 443661 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2152915</commentid>
    <comment_count>2</comment_count>
    <who name="Vlad Zahorodnii">vlad.zahorodnii</who>
    <bug_when>2022-09-15 13:39:38 +0000</bug_when>
    <thetext>*** Bug 451158 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2152917</commentid>
    <comment_count>3</comment_count>
    <who name="Vlad Zahorodnii">vlad.zahorodnii</who>
    <bug_when>2022-09-15 13:39:48 +0000</bug_when>
    <thetext>*** Bug 459146 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2153131</commentid>
    <comment_count>4</comment_count>
    <who name="Vlad Zahorodnii">vlad.zahorodnii</who>
    <bug_when>2022-09-16 06:45:13 +0000</bug_when>
    <thetext>*** Bug 448555 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2156692</commentid>
    <comment_count>5</comment_count>
    <who name="marchenstar">gardenofglass54</who>
    <bug_when>2022-09-27 00:31:30 +0000</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2194392</commentid>
    <comment_count>6</comment_count>
    <who name="Jin Liu">ad.liu.jin</who>
    <bug_when>2023-01-08 00:46:41 +0000</bug_when>
    <thetext>(In reply to nocturne from comment #5)
&gt; Now after a gtk3 upgrade (possibly from
&gt; https://gitlab.gnome.org/GNOME/gtk/-/commit/
&gt; 75d3095a6bb0001682be37c6bb4d42e9bb115d39 ). The cursor is 3 times as big on
&gt; gtk windows compared to rest of the desktop. Using 24 cursor size and 250%
&gt; global scaling. Following warnings are printed by gtk apps.
&gt; 
&gt; (firefox:7952): Gdk-WARNING **: 05:56:17.970:
&gt; ../gtk/gdk/wayland/gdkcursor-wayland.c:242 cursor image size (64x64) not an
&gt; integermultiple of scale (3)
&gt; Any idea how this can be fixed. It is now hard to use gtk apps with the
&gt; 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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2198496</commentid>
    <comment_count>7</comment_count>
    <who name="David Edmundson">kde</who>
    <bug_when>2023-01-17 13:45:56 +0000</bug_when>
    <thetext>*** Bug 435728 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2240580</commentid>
    <comment_count>8</comment_count>
    <who name="Jakub">jjaruszewski</who>
    <bug_when>2023-07-10 17:10:50 +0000</bug_when>
    <thetext>*** Bug 471001 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2242767</commentid>
    <comment_count>9</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2023-07-25 21:12:56 +0000</bug_when>
    <thetext>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&apos;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&apos;s a bit of a mess. :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2273026</commentid>
    <comment_count>10</comment_count>
    <who name="">fanzhuyifan</who>
    <bug_when>2023-12-11 16:58:10 +0000</bug_when>
    <thetext>https://invent.kde.org/plasma/breeze/-/merge_requests/380</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2273920</commentid>
    <comment_count>11</comment_count>
    <who name="Vlad Zahorodnii">vlad.zahorodnii</who>
    <bug_when>2023-12-14 12:35:19 +0000</bug_when>
    <thetext>*** Bug 474430 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2377480</commentid>
    <comment_count>12</comment_count>
    <who name="postix">postix</who>
    <bug_when>2024-11-27 17:47:25 +0000</bug_when>
    <thetext>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&apos;t be backported to the Gtk 4.16 stable branch as of 
* https://gitlab.gnome.org/GNOME/gtk/-/issues/7031#note_2234757
&gt; They rely on viewporter support for pointer surfaces, and mutter still does not support that</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2377483</commentid>
    <comment_count>13</comment_count>
    <who name="postix">postix</who>
    <bug_when>2024-11-27 17:56:08 +0000</bug_when>
    <thetext>^ https://gitlab.gnome.org/GNOME/mutter/-/issues/2633
&gt; Support wp_viewport for cursor surfaces</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2377495</commentid>
    <comment_count>14</comment_count>
    <who name="postix">postix</who>
    <bug_when>2024-11-27 18:34:56 +0000</bug_when>
    <thetext>*** Bug 474603 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2377497</commentid>
    <comment_count>15</comment_count>
    <who name="postix">postix</who>
    <bug_when>2024-11-27 18:35:02 +0000</bug_when>
    <thetext>*** Bug 478277 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2388902</commentid>
    <comment_count>16</comment_count>
    <who name="">fanzhuyifan</who>
    <bug_when>2025-01-12 20:21:19 +0000</bug_when>
    <thetext>*** Bug 498387 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2388904</commentid>
    <comment_count>17</comment_count>
    <who name="Ellie">el</who>
    <bug_when>2025-01-12 20:42:03 +0000</bug_when>
    <thetext>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 &quot;wrong&quot; order, see #498387 .</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2390005</commentid>
    <comment_count>18</comment_count>
    <who name="Noah Westervelt">nwestervelt</who>
    <bug_when>2025-01-16 02:49:19 +0000</bug_when>
    <thetext>I think my issue is related to this bug, so I&apos;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&apos;m using Plasma 6.2.4 with Wayland and below is the specific cursor theme in use:
https://store.kde.org/p/1914275/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2518196</commentid>
    <comment_count>19</comment_count>
    <who name="Vlad Zahorodnii">vlad.zahorodnii</who>
    <bug_when>2026-05-25 11:35:23 +0000</bug_when>
    <thetext>*** Bug 510510 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2558573</commentid>
    <comment_count>20</comment_count>
    <who name="">NordiskGeit</who>
    <bug_when>2026-10-25 22:02:22 +0000</bug_when>
    <thetext>*THIS BREAKS CURSORLAND* (userland)
I would like to also report this bug (1440p 27&quot; main monitor over here) except I hate this even more!!⁹⁹⁹

I have a pixel-art cursor. Animated. Nice to look at.
It&apos;s Pixel Perfect on X11, and by extension XWayland. This is good. This is intended. Looks great and to my desires.
But on anything not X11, it&apos;s absolutely tiny and blurry! Probably not the correct place to complain about this but I will. And since the cursor I&apos;ve chosen is old, it&apos;s exclusively one size and probably built for X11.

Enmaddening. So enmaddening that the more colourful nature of this comment in comparison to other comments is me holding myself back.
And the cursor is one of the things I often see a lot customize. I remember my grandmother&apos;s XP computer having a custom cursor.
It is among the most quintessential features of a modern desktop computer, one of the most common ways to add what little flair you can system-wide, and to see it be butchered like this still and I say outright neglected in this supposed great leap forward that is Wayland is enmaddening to a massive degree.

I run Tumbleweed, so I&apos;m never far behind Arch, usually with few ways to go back lest I want to switch to Leap I guess
I have the original Windows pixel art cursor files and I will be remaking this cursor pack, but if I find it impossible to get pixel perfect system wide then me and wayland will never get along and I&apos;m rejecting all further &quot;progress&quot; because this is a gigantic and most terrible pregression (new development that makes things worse) I have ever seen. Ever. If you are wondering why I care so much about this, refer to the above paragraph.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2558574</commentid>
    <comment_count>21</comment_count>
    <who name="">NordiskGeit</who>
    <bug_when>2026-10-25 22:05:10 +0000</bug_when>
    <thetext>(In reply to NordiskGeit from comment #20)
&gt; *THIS BREAKS CURSORLAND* (userland)
&gt; I would like to also report this bug (1440p 27&quot; main monitor over here)

Oh, right. As implied I run Tumbleweed, so I am running specifically KDE version 20260830-1.1
Or 6.8.1-1.1 if we are to borrow the version number from a selection of other packages</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>