Bug 90444 - Option to set the mouse cursor size in pixels is missing
Summary: Option to set the mouse cursor size in pixels is missing
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_mouse (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Lukas Sommer
URL:
Keywords: accessibility, usability
: 221841 243131 260605 (view as bug list)
Depends on:
Blocks: 273936
  Show dependency treegraph
 
Reported: 2004-09-29 09:03 UTC by t00rman
Modified: 2011-11-09 22:32 UTC (History)
10 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.8


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description t00rman 2004-09-29 09:03:03 UTC
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 -> Peripherals -> Mouse -> 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's /no way to set that from the GUI/ (C.Center)
Comment 1 t00rman 2004-11-12 00:26:29 UTC
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 <binner@kde.org> wrote:
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
> 
> http://bugs.kde.org/show_bug.cgi?id=90444
> binner kde org changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>          AssignedTo|molkentin kde org           |larrosa kde org
>           Component|general                     |kcmmidi
> 

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

Comment 2 Avuton Olrich 2004-12-29 23:41:04 UTC
Same experience here, cursorSize wfm.
Comment 3 Avuton Olrich 2005-03-22 06:56:49 UTC
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.
Comment 4 Avuton Olrich 2005-08-02 17:45:48 UTC
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's an alternative for this now, so I will grep the sources later on today.
Comment 5 t00rman 2005-08-05 13:29:06 UTC
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'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 "Theme" for "Size"
4. change the value to the cursor size <16|24|48> iirc


On 2 Aug 2005 15:45:55 -0000, Avuton Olrich <avuton@gmail.com> wrote:
[bugs.kde.org quoted mail]
Comment 6 William Hilton 2007-12-01 03:17:46 UTC
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's not in KDE4 yet. Using kde4daily.) 
Comment 7 t00rman 2007-12-01 05:01:22 UTC
2004~2008

ROFL!!


On 1 Dec 2007 02:17:46 -0000, William M. Hilton <wmhilton@gmail.com> wrote:

[bugs.kde.org quoted mail]
2004~2008<br><br>ROFL!!<br><br><br><div class="gmail_quote">On 1 Dec 2007 02:17:46 -0000, William M. Hilton &lt;<a href="mailto:wmhilton@gmail.com">wmhilton@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
------- You are receiving this mail because: -------<br>You reported the bug, or are watching the reporter.<br><br><a href="http://bugs.kde.org/show_bug.cgi?id=90444" target="_blank">http://bugs.kde.org/show_bug.cgi?id=90444
</a><br><br><br><br><br>------- Additional Comments From wmhilton gmail com &nbsp;2007-12-01 03:17 -------<br>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&#39;s not in KDE4 yet. Using kde4daily.)
<br></blockquote></div><br>
Comment 8 Matija Šuklje 2009-05-08 09:21:01 UTC
Niiiiice. I'd love to have an option to choose the mouse cursor size! :D
Comment 9 Dario Andres 2010-02-17 15:09:43 UTC
Adding the author of the Mouse KCM refactor, reassigning to SystemSettings.
Comment 10 Dario Andres 2010-02-17 15:10:02 UTC
*** Bug 221841 has been marked as a duplicate of this bug. ***
Comment 11 Christoph Feck 2010-06-29 13:52:21 UTC
*** Bug 243131 has been marked as a duplicate of this bug. ***
Comment 12 Christoph Feck 2010-12-18 13:52:55 UTC
*** Bug 260605 has been marked as a duplicate of this bug. ***
Comment 13 Gerold Jens Wucherpfennig 2010-12-18 17:23:20 UTC
*** 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->Preferences->Appearance->Customize->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->gnome->peripherals->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...
Comment 14 Gerold Jens Wucherpfennig 2010-12-22 01:29:28 UTC
You can still change the mouse pointer size by editing:
~/.kde/share/config/kcminputrc
and setting cursorSize to 32 e.g.
Comment 15 Gerold Jens Wucherpfennig 2011-01-04 02:38:45 UTC
On Tuesday 21 December 2010 08:53:11 Gerold Jens Wucherpfennig wrote:
>
>In the sources of gnome-settings-daemon in
>plugins/font/gsd-font-manager.c there is the code to change
>the size of the mouse cursor pointer.
>
>It uses the Xlib function XChangeProperty to set the pointer size.
>
>Now my question:
>In which file/component of KDEBASE may I add such a function
>to implement that feature?
>

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

> 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: "The LegacyTheme class is a CursorTheme implementation for the KDE/Qt bitmap cursors and the X11 cursor font." It seems to have little impact.

> 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 "as is".

Furthermore, krdb reads the same config file and applies the value "as is" 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->desktop()->screen(0)->logicalDpiY() * 16 / 72.

(I don't understand why KGlobalSettings::Private::applyCursorTheme() behaves different ...)

> 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:
-> "Choose cursor size automatically (relays on the font resolution)"
and
-> "Set prefered cursor size"
with the last one enabling a KIntSpinbox?
Comment 17 Lukas Sommer 2011-07-06 08:49:37 UTC
Review request at https://git.reviewboard.kde.org/r/101701/
Comment 18 Lukas Sommer 2011-11-09 22:32:02 UTC
Git commit 617b08f5f6652bb9d918abc963954723caca59d2 by Lukas Sommer.
Committed on 09/11/2011 at 23:27.
Pushed by sommer into branch 'master'.

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