Bug 280695 - Partially enlarged mouse pointer with high resolution (3840x2048)
Summary: Partially enlarged mouse pointer with high resolution (3840x2048)
Status: RESOLVED UPSTREAM
Alias: None
Product: kde
Classification: I don't know
Component: general (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-24 08:36 UTC by Erik Wasser
Modified: 2011-08-26 14:50 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Wasser 2011-08-24 08:36:00 UTC
Version:           unspecified (using KDE 4.6.5) 
OS:                Linux

Starting KDE with a resolution of 3840x2048 enlarges the mousepointer in KDE programms. The size of the cursor just doubles (using the "KDE Classis" as Cursor Theme). The normal pointer is affected as well as the C&P mouse pointer.

The mousepointer is ca. 48 pixel high instead of 24 pixels. I think this is a KDE problem because not every application shows the enlarged mouse pointer, for example:

Kmail (Window Decoration) = normal mouse pointer
Kmail (Menue/Icons/Main Area) = enlarged mouse pointer
Firefox (Window Decoration) = normal mouse pointer
Firefox (Menue/Icons/Browsing Area) = enlarged mouse pointer
Gimp = normal mouse pointer
Desktop Background = normal mouse pointer
gnome-character-map (Main stuff) = normal mouse pointer
gnome-character-map ("Text to copy" input field, "Character Details" tab) = enlarged mouse pointer
gnome-calculator (Main stuff) = normal mouse pointer
gnome-calculator (Input field) = enlarged mouse pointer

So I think this is a KDE (or QT?) problem and not a Nvidia problem. I also found a posting "Thanks for enlarging my mouse pointer" http://forum.kde.org/viewtopic.php?f=15&t=93407 so I assume this is a KDE/QT feature.

Problem 1) Resizing the mouse pointer is not the real problem. The problem is the inconsequence of the enlargement. And I don't find an option to turn it fully off/on.

Problem 2) I'm using 6 monitors (6x1280x1024) to display the resolution so my DPI is "normal". So there is no reason to enlarge the mouse pointer at all.


Reproducible: Always

Steps to Reproduce:
1) Enlarge the resolution to 3840x2048.
2) Login
3) Start Firefox/Kmail and other programms.


Actual Results:  
Partially enlargement of the mouse pointer depending on the program/pointer location/...


Expected Results:  
Fully enlargement or no enlargement at all.

This bug report will be filtered a lot of times by many spam instances. B-)
Comment 1 Thomas Lübking 2011-08-24 13:50:08 UTC
This is rather not a kwin issue but somewhere in kdelibs (at best, given a pure gnome application is inconsitent with a large I-beam any a "normal" pointer)

Can you confirm it's a larger version of the same pointer and NOT a theme and the X11 default pointer (for the "normal" one - it's black, so try eg. a white theme to be sure)

Did you try to hardcode the DPI in xorg.conf?
Also which distro do you use? (iff any)

Assigning to "KDE" cause i've no idea what would be responsible here.
Comment 2 Erik Wasser 2011-08-25 13:03:39 UTC
Changing the mouse theme is a good idea but confuses me just more. The changed mouse pointer will be be accepted by the KDE applications but after a restart of the application the standard enlarged mouse will be shown again. And this time I know it's the standard mouse pointer.

The gnome-* programms just use the new pointer too but they will also show the enlarged standard mouse pointer (where I mentioned it before) just like with no theme at all.

I don't force any DPI settings:

% grep < /etc/kde/kdm/kdmrc ServerArgsLocal
ServerArgsLocal=-background none -nolisten tcp

Current DPI is:

% xdpyinfo | grep -i dots
  resolution:    237x83 dots per inch

I'm using a normal Fedora Core 15 (no Rawhide) in x86_64.
Comment 3 Thomas Lübking 2011-08-25 13:51:23 UTC
(In reply to comment #2)
> The gnome-* programms just use the new pointer too but they will also show the
> enlarged standard mouse pointer (where I mentioned it before) just like with no
> theme at all.
It's important to understand that the titlebar is usually NOT part of the window.
Do the gtk+ aplpications still mix cursor usage inside and is it random or just a split between the I-beam and the Left pointer (that normal thing pointing the upper left;-)
 
> I don't force any DPI settings:
> 
> % grep < /etc/kde/kdm/kdmrc ServerArgsLocal
> ServerArgsLocal=-background none -nolisten tcp
> 
> Current DPI is:
> 
> % xdpyinfo | grep -i dots
>   resolution:    237x83 dots per inch
there's the first source of your issue: you do certainly not have 237dpi of horizontal resolution, do you? (that would mean your three monitors are 16'' or 411.5mm (that is 41cm) altogether but rather ONE of them.
Try to correct the display geometry or hardcode the DPI in xorg.conf

X11 apparently only takes the h'res into account (otherwise the pointer should be horizontally stretched since the assumes resolution is no way square anymore) -> X11 bug but likely not worth to deal with (such resolution is quite unlikely to really exist)

Remains the question why sometimes the themed pointer is used and sometimes the default X11 (fallback) one.
I guess the clients look for a pointer matching your resolution and get arbitrarily confused or sometimes use the vertical and sometimes the horizontal one. No idea though. Shrug.

-> Please try whether the issue disappears (ie. always the themed cursor is used) when you "fix" the resolution. So we know what client bug to look for :)

> 
> I'm using a normal Fedora Core 15 (no Rawhide) in x86_64.
Comment 4 Erik Wasser 2011-08-26 10:23:39 UTC
(In reply to comment #3)

> > % xdpyinfo | grep -i dots
> >   resolution:    237x83 dots per inch
> there's the first source of your issue: you do certainly not have 237dpi of
> horizontal resolution, do you? (that would mean your three monitors are 16'' or
> 411.5mm (that is 41cm) altogether but rather ONE of them.
> Try to correct the display geometry or hardcode the DPI in xorg.conf

Good catch. The strange DPI comes from the graphic card combined with two tripple head 2 go. So my
card thinks it's connected to 2 monitors with 3840x1024.

I fixed the resolution to 80 DPI:

% grep ServerArgsLocal /etc/kde/kdm/kdmrc
ServerArgsLocal=-background none -nolisten tcp -dpi 80
% 

After a CTRL-ALT-BACKSPACE everything is fine. No enlarged cursors anymore (neither with KDE nor Gnome programms).

Thanks. (I close this bug with RESOLVED/FIXED.)
Comment 5 Christoph Feck 2011-08-26 14:50:49 UTC
Bug is where the DPI is computed, probably in XRandR => upstream