Summary: | Option to set the mouse cursor size in pixels is missing | ||
---|---|---|---|
Product: | [Applications] systemsettings | Reporter: | t00rman |
Component: | kcm_mouse | Assignee: | Lukas Sommer <sommerluk> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | CC: | andresbajotierra, avuton, cfeck, fredrik, georgas, gjwucherpfennig, lcn.mustard, matija, rik, sommerluk |
Priority: | NOR | Keywords: | accessibility, usability |
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 4.8 | |
Sentry Crash Report: | |||
Bug Depends on: | |||
Bug Blocks: | 273936 |
Description
t00rman
2004-09-29 09:03:03 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 ? Same experience here, cursorSize wfm. 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. 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. 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] 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.) 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 <<a href="mailto:wmhilton@gmail.com">wmhilton@gmail.com</a>> 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 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's not in KDE4 yet. Using kde4daily.) <br></blockquote></div><br> Niiiiice. I'd love to have an option to choose the mouse cursor size! :D Adding the author of the Mouse KCM refactor, reassigning to SystemSettings. *** Bug 221841 has been marked as a duplicate of this bug. *** *** Bug 243131 has been marked as a duplicate of this bug. *** *** Bug 260605 has been marked as a duplicate of this bug. *** *** 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... You can still change the mouse pointer size by editing: ~/.kde/share/config/kcminputrc and setting cursorSize to 32 e.g. 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 > > 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? Review request at https://git.reviewboard.kde.org/r/101701/ 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 |