<?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>90444</bug_id>
          
          <creation_ts>2004-09-29 09:03:03 +0000</creation_ts>
          <short_desc>Option to set the mouse cursor size in pixels is missing</short_desc>
          <delta_ts>2011-11-09 22:32:02 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>systemsettings</product>
          <component>kcm_mouse</component>
          <version>unspecified</version>
          <rep_platform>unspecified</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>accessibility, usability</keywords>
          <priority>NOR</priority>
          <bug_severity>wishlist</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>273936</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter>t00rman</reporter>
          <assigned_to name="Lukas Sommer">sommerluk</assigned_to>
          <cc>andresbajotierra</cc>
    
    <cc>avuton</cc>
    
    <cc>cfeck</cc>
    
    <cc>fredrik</cc>
    
    <cc>georgas</cc>
    
    <cc>gjwucherpfennig</cc>
    
    <cc>lcn.mustard</cc>
    
    <cc>matija</cc>
    
    <cc>rik</cc>
    
    <cc>sommerluk</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin>4.8</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>272631</commentid>
    <comment_count>0</comment_count>
    <who name="">t00rman</who>
    <bug_when>2004-09-29 09:03:03 +0000</bug_when>
    <thetext>Version:           3.3.0 (using KDE 3.3.0, Gentoo)
Compiler:          gcc version 3.3.2 20031218 (Gentoo Linux 3.3.2-r5, propolice-3.3-7)
OS:                Linux (i686) release 2.6.7-t4

KDE 3.3 ... /NOT/ 2.2 ;-)

Control Center -&gt; Peripherals -&gt; Mouse -&gt; Cursor Theme

You are missing the option to set a cursor size.

--------------------------------------

~/.kde/share/config/kdeglobals

cursorSize=48
cursorTheme=gentoo-silver

I HAVE ADDED THE cursorSize line /manually/.
It does work =)

Yet there&apos;s /no way to set that from the GUI/ (C.Center)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>285042</commentid>
    <comment_count>1</comment_count>
    <who name="">t00rman</who>
    <bug_when>2004-11-12 00:26:29 +0000</bug_when>
    <thetext>so... did you fix it ? =)

just in case you didnt and had some gay^H^H^H excuse, lemme rephrase the issue:

Mouse Cursor Size setting is missing, yet it can be changed - just as
the theme can - by adding a line in the config file (so the author of
that did intend for it to be changed, but forgot to add the option to
the gui).

and in Spanish if necessary:

La opcion para cambiar el tamanio del cursor no esta en la interfaz
grafica, pero se puede hacer agregando una linea al fichero de
configuracion; quien hizo ese programa se olvido de meter una forma de
cambiar eso, pero la posibilidad existe.



On 2 Oct 2004 15:54:49 -0000, Stephan Binner &lt;binner@kde.org&gt; wrote:
&gt; ------- You are receiving this mail because: -------
&gt; You reported the bug, or are watching the reporter.
&gt; 
&gt; http://bugs.kde.org/show_bug.cgi?id=90444
&gt; binner kde org changed:
&gt; 
&gt;            What    |Removed                     |Added
&gt; ----------------------------------------------------------------------------
&gt;          AssignedTo|molkentin kde org           |larrosa kde org
&gt;           Component|general                     |kcmmidi
&gt; 

That blurb doesnt say much... did you fix the bug ?

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>298068</commentid>
    <comment_count>2</comment_count>
    <who name="Avuton Olrich">avuton</who>
    <bug_when>2004-12-29 23:41:04 +0000</bug_when>
    <thetext>Same experience here, cursorSize wfm.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>326684</commentid>
    <comment_count>3</comment_count>
    <who name="Avuton Olrich">avuton</who>
    <bug_when>2005-03-22 06:56:49 +0000</bug_when>
    <thetext>phew, I was hopeing this was was going to be queued up for 3.4, is this going in any time soon, it seems to be really missing without this in kcontrol.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>362237</commentid>
    <comment_count>4</comment_count>
    <who name="Avuton Olrich">avuton</who>
    <bug_when>2005-08-02 17:45:48 +0000</bug_when>
    <thetext>OK, I was going to try to produce a patch for this issue but it appears that the global config file now has no cursorSize element. I do not believe there&apos;s an alternative for this now, so I will grep the sources later on today.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>362953</commentid>
    <comment_count>5</comment_count>
    <who name="">t00rman</who>
    <bug_when>2005-08-05 13:29:06 +0000</bug_when>
    <thetext>i think i said already that i ADDED that line to it.. and it worked..
and last time i tried 3.4.x and it STILL WORKED!

just add the fricking line...

right after the theme, it looks about the same but says Size instead of Theme

i&apos;m not using linux anymore so i cant tell you exactly what it looks like
but as i said:

1. you take the theme line
2. copy that line
3. replace &quot;Theme&quot; for &quot;Size&quot;
4. change the value to the cursor size &lt;16|24|48&gt; iirc


On 2 Aug 2005 15:45:55 -0000, Avuton Olrich &lt;avuton@gmail.com&gt; wrote:
[bugs.kde.org quoted mail]
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>559304</commentid>
    <comment_count>6</comment_count>
    <who name="William Hilton">wmhilton</who>
    <bug_when>2007-12-01 03:17:46 +0000</bug_when>
    <thetext>Hmm, I know this is old, but it would be a nice feature. The current method (re-routing symlinks) is not very user-friendly. (I just looked, and it&apos;s not in KDE4 yet. Using kde4daily.) </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>559319</commentid>
    <comment_count>7</comment_count>
    <who name="">t00rman</who>
    <bug_when>2007-12-01 05:01:22 +0000</bug_when>
    <thetext>2004~2008

ROFL!!


On 1 Dec 2007 02:17:46 -0000, William M. Hilton &lt;wmhilton@gmail.com&gt; wrote:

[bugs.kde.org quoted mail]
2004~2008&lt;br&gt;&lt;br&gt;ROFL!!&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On 1 Dec 2007 02:17:46 -0000, William M. Hilton &amp;lt;&lt;a href=&quot;mailto:wmhilton@gmail.com&quot;&gt;wmhilton@gmail.com&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
------- You are receiving this mail because: -------&lt;br&gt;You reported the bug, or are watching the reporter.&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://bugs.kde.org/show_bug.cgi?id=90444&quot; target=&quot;_blank&quot;&gt;http://bugs.kde.org/show_bug.cgi?id=90444
&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------- Additional Comments From wmhilton gmail com &amp;nbsp;2007-12-01 03:17 -------&lt;br&gt;Hmm, I know this is old, but it would be a nice feature. The current method (re-routing symlinks) is not very user-friendly. (I just looked, and it&amp;#39;s not in KDE4 yet. Using kde4daily.)
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>753970</commentid>
    <comment_count>8</comment_count>
    <who name="Matija Šuklje">matija</who>
    <bug_when>2009-05-08 09:21:01 +0000</bug_when>
    <thetext>Niiiiice. I&apos;d love to have an option to choose the mouse cursor size! :D</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>919071</commentid>
    <comment_count>9</comment_count>
    <who name="Dario Andres">andresbajotierra</who>
    <bug_when>2010-02-17 15:09:43 +0000</bug_when>
    <thetext>Adding the author of the Mouse KCM refactor, reassigning to SystemSettings.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>919074</commentid>
    <comment_count>10</comment_count>
    <who name="Dario Andres">andresbajotierra</who>
    <bug_when>2010-02-17 15:10:02 +0000</bug_when>
    <thetext>*** Bug 221841 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>984246</commentid>
    <comment_count>11</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2010-06-29 13:52:21 +0000</bug_when>
    <thetext>*** Bug 243131 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1061066</commentid>
    <comment_count>12</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2010-12-18 13:52:55 +0000</bug_when>
    <thetext>*** Bug 260605 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1061199</commentid>
    <comment_count>13</comment_count>
    <who name="Gerold Jens Wucherpfennig">gjwucherpfennig</who>
    <bug_when>2010-12-18 17:23:20 +0000</bug_when>
    <thetext>*** new WORKAROUND for KDE4 ***

The old workaround does not work anymore in KDE4.
Even the option to use larger mouse pointers of the KDE3 control center
is gone altogether...

Now there is this shiny, brand new workaround:

In GNOME start: System-&gt;Preferences-&gt;Appearance-&gt;Customize-&gt;Pointer
and then set the size to the largest possible value.
In GNOME-apps the cursor will be really huge then.
In KDE4-apps it will be 32x32 pixels in size.

Then start gconf-editor. Go to desktop-&gt;gnome-&gt;peripherals-&gt;mouse.
Then change cursor_size to 32.

Now the cursor will be of the size 32x32 pixels in GNOME, KDE4
and even X11-apps like xterm. :-) Yeah!!!

Yes, I even figured this workaround on my own. Right!

Happy hacking for the other KDE-devs who like to code some stuff for this.
Maybe I will do this on my own. Only time will tell...

Thanks for marking my bug-report as a duplicate go to Christoph Feck...
Otherwise I would never have found this crusty, old bug-report
and you would not have got my workaround...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1062798</commentid>
    <comment_count>14</comment_count>
    <who name="Gerold Jens Wucherpfennig">gjwucherpfennig</who>
    <bug_when>2010-12-22 01:29:28 +0000</bug_when>
    <thetext>You can still change the mouse pointer size by editing:
~/.kde/share/config/kcminputrc
and setting cursorSize to 32 e.g.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1067721</commentid>
    <comment_count>15</comment_count>
    <who name="Gerold Jens Wucherpfennig">gjwucherpfennig</who>
    <bug_when>2011-01-04 02:38:45 +0000</bug_when>
    <thetext>On Tuesday 21 December 2010 08:53:11 Gerold Jens Wucherpfennig wrote:
&gt;
&gt;In the sources of gnome-settings-daemon in
&gt;plugins/font/gsd-font-manager.c there is the code to change
&gt;the size of the mouse cursor pointer.
&gt;
&gt;It uses the Xlib function XChangeProperty to set the pointer size.
&gt;
&gt;Now my question:
&gt;In which file/component of KDEBASE may I add such a function
&gt;to implement that feature?
&gt;

On 12/21/10 22:04, Christoph Feck answered:
&gt; All mouse/cursor code is in workspace/kcontrol/input, also check the xcursor 
&gt; subdir there.
&gt;
&gt; The call to change the cursor size is already there [1] (called from 
&gt; startkde). What you would have to do is to:
&gt;
&gt; 1) find out why the feature got removed in KDE 4
&gt; 2) check if the intention was to make the cursor size follow the icon size [2]
&gt; 3) find out how the setting is/was passed to kapplymousetheme
&gt; 4) add an option to the UI to allow changing the size
&gt;
&gt; Fredrik Höglund wrote the Xcursor theme support, so he is probably the right 
&gt; person to ask if you got stuck. Patches go to reviewboard, please :P
&gt;
&gt; Christoph Feck (kdepepo)
&gt;
&gt; [1] 
&gt; http://lxr.kde.org/source/KDE/kdebase/workspace/kcontrol/input/kapplymousetheme.cpp#77
&gt; [2] 
&gt; http://lxr.kde.org/source/KDE/kdebase/workspace/kcontrol/input/xcursor/cursortheme.cpp#109
&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1124079</commentid>
    <comment_count>16</comment_count>
    <who name="Lukas Sommer">sommerluk</who>
    <bug_when>2011-05-27 19:07:44 +0000</bug_when>
    <thetext>&gt; 1) find out why the feature got removed in KDE 4

Well, it seems that is was not present in KDE 3. In KDE 4 only moved the location within the config files.

&gt; 2) check if the intention was to make the cursor size follow the icon size [2]

This code (which seems to change some cursor sizes to common icon sizes) is internal to the GUI (systemsettings). It has no impact out of the GUI. I assume that this is legacy code that was written with legacytheme.cpp in mind. Quote from legacytheme.cpp: &quot;The LegacyTheme class is a CursorTheme implementation for the KDE/Qt bitmap cursors and the X11 cursor font.&quot; It seems to have little impact.

&gt; 3) find out how the setting is/was passed to kapplymousetheme

kapplymousetheme applies the value using the Xcursor library. kapplymousetheme is executed by startkde. startkde reads simply the config file and passes the cursorSize value to kapplymousetheme &quot;as is&quot;.

Furthermore, krdb reads the same config file and applies the value &quot;as is&quot; using xrdb (key: Xcursor.size).

KGlobalSettings::Private::applyCursorTheme() reads the very same config file and applies the value using the Xcursor library. If the value is -1, it defaults to app-&gt;desktop()-&gt;screen(0)-&gt;logicalDpiY() * 16 / 72.

(I don&apos;t understand why KGlobalSettings::Private::applyCursorTheme() behaves different ...)

&gt; 4) add an option to the UI to allow changing the size

I will have a look at this. For the values in the config file, 0 results in relaying on the default Xcursor behaviour (=choose size depending on Xft.fontsize). -1 results in a fixed cursor size.

Maybe we should use radiobuttons:
-&gt; &quot;Choose cursor size automatically (relays on the font resolution)&quot;
and
-&gt; &quot;Set prefered cursor size&quot;
with the last one enabling a KIntSpinbox?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1138729</commentid>
    <comment_count>17</comment_count>
    <who name="Lukas Sommer">sommerluk</who>
    <bug_when>2011-07-06 08:49:37 +0000</bug_when>
    <thetext>Review request at https://git.reviewboard.kde.org/r/101701/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1183401</commentid>
    <comment_count>18</comment_count>
    <who name="Lukas Sommer">sommerluk</who>
    <bug_when>2011-11-09 22:32:02 +0000</bug_when>
    <thetext>Git commit 617b08f5f6652bb9d918abc963954723caca59d2 by Lukas Sommer.
Committed on 09/11/2011 at 23:27.
Pushed by sommer into branch &apos;master&apos;.

Make mouse coursor size configurable

Enable systemsettings to change the size of the mouse cursor.
FEATURE: 90444
FIXED-IN: 4.8
REVIEW: 101701
GUI:
DIGEST:

M  +18   -6    kcontrol/input/xcursor/cursortheme.cpp
M  +22   -6    kcontrol/input/xcursor/cursortheme.h
M  +2    -2    kcontrol/input/xcursor/legacytheme.h
M  +6    -12   kcontrol/input/xcursor/previewwidget.cpp
M  +1    -1    kcontrol/input/xcursor/previewwidget.h
M  +166  -31   kcontrol/input/xcursor/themepage.cpp
M  +32   -3    kcontrol/input/xcursor/themepage.h
M  +33   -7    kcontrol/input/xcursor/themepage.ui
M  +68   -4    kcontrol/input/xcursor/xcursortheme.cpp
M  +6    -3    kcontrol/input/xcursor/xcursortheme.h

http://commits.kde.org/kde-workspace/617b08f5f6652bb9d918abc963954723caca59d2</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>