Created attachment 80809 [details] Comparison of LibreOffice Alt+Tab Icon to Firefox The Icon that is displayed when switching between applications using the Alt+Tab key combination has a very low-resolution and lacks proper background transparency.
This problem is in xfce enviroment too. In xfce, icons showed in alt+tab dialog are loaded from _NET_WM_ICON property. You can get this propery by "xprop -id $XID _NET_WM_ICON" and XID from xwininf app. In my case Xubuntu 13.10, LibreOffice 4.1.3.2, I get only 16x16 and 24x24 icons. For Impress: xprop -id 0x3c00059 _NET_WM_ICON _NET_WM_ICON(CARDINAL) = Icon (26 x 26): ░▒▒▒▒▒▒▒▒▒░ ▒▒▒▒░ ▒ ▒░ ░▒▒▒▒ ▒ ▒░ ░▒▒▒ ▒ ▒░ ░▒▒ ▒ ▒░ ░▒ ▒ ▒░ ▒ ▒░ ▒ ▒░ ▒ ░▒▒▒▒▒▒▒▒░ ▒ ▒ ▒░ ░▒ ▒ ▒ ▒ ░▒▒▒▒░ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒▒▒▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ░▒░▒▒▒▒░ ▒ ▒ ▒░ ▒░░ ░ ░░▒ ░▒ ▒░ ░▒▒▒▒▒▒▒▒▒▒░ ░▒ ▒░ ░▒ ▒░ ░▒ ▒░░░░░░░░░░░░░░░░▒ ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░ Icon (16 x 16): ░▒▒▒▒▒▒▒ ▒▒▒▒ ▒ ░▒ ▒▒▒ ▒ ░▒ ▒▒ ▒ ░▒ ▒ ▒ ░▒ ▒ ░▒ ▒ ▒▒▒▒▒▒▒▒ ░▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒▒░▒ ▒ ▒ ▒ ▒ ▒ ▓ ▒ ▓ ▓▓░▓ ▓ ▓ ▓ ▓ ▓ ▓░ ▓▓▓▓▓▓▓▓ ░▓ ▓░ ░▓ ▓░░░░░░░░░░░░▓ ▒▓▓▓▓▓▓▓▓▓▓▓▓▒
Right now you’ll need to use your distro’s LibreOffice instead of the official TDF packages to get proper integration with your icon theme.
Even using a distro package (e.g. libreoffice-kde) doesn't help in a KDE environment, since under X11, KDE's window manager KWin always honors _NET_WM_ICON instead of using the themed icons from the .desktop file. And in vcl/unx/generic/window/salframe.cxx, LibreOffice sets _NET_WM_ICON to be a really ugly, low-resolution icon. It's particularly bad in Plasma, as the internal Breeze theme icon is just wrong, too: https://bugsfiles.kde.org/attachment.cgi?id=105866 See https://bugs.kde.org/show_bug.cgi?id=380508, particularly the picture: https://bugsfiles.kde.org/attachment.cgi?id=105866 But regardless, this is 2017; _NET_WM_ICON shouldn't be set to a 48x48 raster image. We can do better than that.
any idea how to fix this bug?
Created attachment 139874 [details] Ugly Icons in KDE Plasma Large Icons Task Switcher Attaching a picture of how it looks in the KDE Plasma Large Icons Task Switcher.
Buovjaga, could we get this bumped up in the priority list? It's a fairly impatctful visual papercut in KDE Plasma for users of the popular Large Icons task switcher. See the attached screenshots.
Eh, OK, although I've wanted to keep at least some relative meaning to the levels of priority and severity.
Thanks, and sorry to be a pain in the butt!
LibreOffice use the mimetype icons from LibreOffice for switch windows or the taskmanager. The NEW LibreOffice icons are available in 16,22,24,32,48,64,128,256px size so they should be shown. Please check again with a master build https://dev-builds.libreoffice.org/daily/master/
Created attachment 142638 [details] Still a problem in today's daily build Andreas, the problem isn't a lack of high resolution icons. The problem is that the _NET_WM_ICON window property isn't set properly, so they don't get used. I found the problem in vcl/unx/generic/window/salframe.cxx. I can confirm that the problem remains with today's daily build. See the attached screenshot.
can someone have a look how has experience with kde/qt desktop integration. thanks
Created attachment 151284 [details] Screenshot when using gen/x11 VCL plugin
Created attachment 151285 [details] Screenshot when using kde5 VCL plugin
Created attachment 151286 [details] Small sample Qt application that shows the same behaviour
I just tried to reproduce on Debian testing running Plasma with the Breeze theme (plasma-desktop package at version 4:5.14.5.1-1) and am unable to do so with the kde5 or gtk3 VCL plugins. Current LibreOffice master build used (as of commit 425a570a114d9a087e5320f071604f64d43fcec1) [To actually set up the icon-only task switcher, I had to: go to "System Settings" -> "Task Switcher", click the star icon to open the "Get Hot New Stuff" system settings module and install the "MediumRoundedDark" windows switcher; then select "Large Icons".] What Nate says about those icons being set in 'vcl/unx/generic/window/salframe.cxx' seems correct, **but** this is only relevant if the gen/x11 VCL plugin is used, which is not really what want to use anyway if you want a modern UI. :) If I use that VCL plugin (start LibreOffice with 'SAL_USE_VCLPLUGIN=gen ./instdir/program/soffice --writer', I can reproduce the issue, s. screenshot in attachment 151284 [details]. However, if I use the gtk3 (SAL_USE_VCLPLUGIN=gtk3) or kde5 VCL plugin (default on KDE Plasma), the icon looks nice, s. attachment 151285 [details]. As far as I can see, the icons are set in 'Qt5Frame::setIcon' using 'QWindow::setIcon' and it uses the icon from the icon theme [1], which for the writer case would be: QIcon aIcon = QIcon::fromTheme("libreoffice-writer"); The corresponding icon is located at '/usr/share/icons/breeze/apps/48/libreoffice-writer.svg'. If I open that icon using e.g. Inkscape, it looks the same as the icon in the task switcher in my screenshot. Since it's an SVG icon, there shouldn't be any issues with scaling etc. The behaviour is the same as with the attached little sample program ( attachment 151286 [details] ). @Nate, or somebody else of those who are affected: Can you still reproduce this issue with a current master build of LibreOffice (available at and co-installable as described at [3])? If so: 1) Does it also happen with a clean user profile? (shouldn't play any role, but...) 2) What distro are you using? 3) What Plasma theme? 4) What happens when using the attached sample program (attachment 151286 [details]) instead of LibreOffice? 5) Can you attach an strace output? 6) Can you paste the version information from "Help" -> "About LibreOffice"? 7) Any other ideas what could be the reason? [1] https://cgit.freedesktop.org/libreoffice/core/tree/vcl/qt5/Qt5Frame.cxx?id=c1bcdf9aa5d8ea99435906ffa9787232a909ff0f#n309 [2] https://dev-builds.libreoffice.org/daily/master/ [3] https://wiki.documentfoundation.org/Installing_in_parallel/Linux
(In reply to Michael Weghorn from comment #15) > LibreOffice (available at and co-installable as described at [3])? That should have been: "available at [2] and co-installable as described at [3]"
Looking again at the screenshot in comment 10, this one was still using the kde4 VCL plugin, which is no more on current master, so the hope is that the described problem is gone as well. :) Can anybody confirm this?
Confirmed that the problem is fixed with the KDE5 VCL and version 6.2.3.2! I get the nice icon from the icon theme in my Large Icons task switcher now. I'm using Manjaro with Plasma 5.15.5.