Summary: | Applications that do not set _NET_WM_ICON get a corrupted icon | ||
---|---|---|---|
Product: | [Unmaintained] kdelibs | Reporter: | Mike <mike> |
Component: | general | Assignee: | Lubos Lunak <l.lunak> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | amantia, andrey, crazy, dorian.nagel, echidnaman, faure, jlp, linux, mutlu_inek, plasma-bugs, s.illes79, saurav.sarkar, sven.burmeister, yg |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Mike
2007-12-07 20:18:13 UTC
i get this problem with opera and openoffice, but it seems that an icon is set and KWindowSystem::icon( d->win, width, height, allowResize ) returns someting even if corrupted. for instance the opera icon has a recognizable shape, even if filled with junk and the thing returned by KWindowSystem::icon is not a null pixmap (unfortunately i would say:) it seems that the problem is in kwindowsystem_x11.cpp around line 602: the mask is generated correctly (at least in case of opera) but the pixmap is not. i would say the problem is in XCopyArea(QX11Info::display(), p, pm.handle(), gc, 0, 0, w, h, 0, 0); because it's pm that is going to contain corrupted data, but this is totally black magic to me :( When I start OpenOffice or Opera, initially the correct icon is displayed. The moment the application's main window is drawn onto the desktop, the icon is distorted. I.e. I can see the correct icon as long as the app is launching. Visual mismatches again. *** Bug 155083 has been marked as a duplicate of this bug. *** Let's keep track of this on panel-devel, since the result is taskbar corruption. I bet the application icon in the kwin decoration is broken too (for decorations that have it). With OpenOffice.org, I get a correct OpenOffice.org icon in the decoration (Oxygen), but a white outline in the taskbar. *** Bug 155672 has been marked as a duplicate of this bug. *** I also get this problem with Psi, a Qt3 based Jabber client. *** This bug has been confirmed by popular vote. *** *** Bug 156410 has been marked as a duplicate of this bug. *** I have exactly the same thing with Opera as Marco Martin described. It happens for Konqueror as well, if you load certain webpages, the icons gets corrupted. Happens with XEmacs too: taskbar icon is corrupt. kwin-decoration icon is okay though. *** Bug 157072 has been marked as a duplicate of this bug. *** *** Bug 157403 has been marked as a duplicate of this bug. *** Happens with Firefox 3 beta 3, but not Firefox 3 beta 2. Does failing to set a _NET_WM_ICON constitute a bug that should reported to the application developers? http://standards.freedesktop.org/wm-spec/wm-spec-1.4.html#id2511898 There is no mention here that the client MUST set this property. It seems to be optional. The panel should not show garbage even if the client is misbehaving. *** Bug 157017 has been marked as a duplicate of this bug. *** SVN commit 778193 by lunakl: Function for creating QPixmap from X Pixmap, and try to handle the case when the depths differ. BUG: 153637 M +6 -0 CMakeLists.txt A util/kxutils.cpp [License: LGPL (v2+)] A util/kxutils.h [License: LGPL (v2+)] M +7 -29 windowmanagement/kwindowsystem_x11.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=778193 awesome! thanks, Lubos =) |