Bug 159401

Summary: Colorpicker returning wrong values
Product: [Plasma] plasma4 Reporter: Milan Krivda <swalko12>
Component: widget-miscAssignee: Pino Toscano <pino>
Status: RESOLVED FIXED    
Severity: normal CC: loacoon, plasma-bugs, zajec5
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:

Description Milan Krivda 2008-03-16 11:45:27 UTC
Version:            (using KDE 4.0.2)
Installed from:    Gentoo Packages
OS:                Linux

If i open configure desktop dialog and try to pickup color, color picker is returning bad (i think randomized) color values. If i take color from same place three times, colorpicker return three times different colors. Color picking is working right from other qt4, kde4 applications.
Comment 1 Pino Toscano 2008-06-15 00:11:39 UTC
*** Bug 163097 has been marked as a duplicate of this bug. ***
Comment 2 Pino Toscano 2008-06-15 00:19:32 UTC
SVN commit 820607 by pino:

When we are compibiling for X11, and Xutil.h was found, use the Xlib API to get the color value of a pixel of the screen. In all the other cases, use the "classic" Qt code.
This workarounds a bug in either Qt or X (Qt, probably), but should be fine for now.

BUG: 159401


 M  +14 -0     CMakeLists.txt  
 A             config-kolourpicker.h.cmake  
 M  +34 -4     kolourpicker.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=820607
Comment 3 Aaron J. Seigo 2008-06-15 21:44:18 UTC
interesting ... this only fixes the kolourpicker plasmoid, of course; i think something similar will need to be done to KColorDialog::grabColor for the desktop settings dialog which still doesn't work. i'm testing now. thanks for the patch, Pino; sad we have to go under Qt for this =/
Comment 4 Aaron J. Seigo 2008-06-16 01:10:03 UTC
this is now fixed in kdelibs as well. thanks pino and marco =)