GNU bug report logs - #39238
26.3; Emacs icons displaying improperly on KDE

Previous Next

Package: emacs;

Reported by: xs wang <wangxs1989 <at> gmail.com>

Date: Wed, 22 Jan 2020 15:25:02 UTC

Severity: normal

Tags: moreinfo

Found in version 26.3

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 39238 in the body.
You can then email your comments to 39238 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#39238; Package emacs. (Wed, 22 Jan 2020 15:25:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to xs wang <wangxs1989 <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 22 Jan 2020 15:25:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: xs wang <wangxs1989 <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 26.3; Emacs icons displaying improperly on KDE
Date: Wed, 22 Jan 2020 15:41:32 +0800
[Message part 1 (text/plain, inline)]
Problem description:

When I use the Task Switcher in the large icon style in KDE plasma, the
Emacs icon is always displayed in low resolution, like in the link below.

https://i.imgur.com/AV4YsN3.png

Steps to reproduce:

1. Install Emacs on Manjaro KDE edition
2. Use the Plasma Large Icons style for the Task Switcher (System Settings
> Window Management > Task Switcher > Main Window > Visualization > Large
icons)
4. Hit alt-tab


Actual results:

The alt-tab window switcher displays Emacs's icon as an ugly scaled-up
48x48 icon as shown in the above picture link.


Expected results:

The 128x128 icon should be used instead, so that the large icon is pretty
and not pixelated.

The problem occurs because Emacs does not set _NET_WM_ICON_NAME to a
128x128 icon. Because of this, the window manager it not aware of the
high-res icon, and is forced to display a scaled-up version of the largest
icon it is aware of--the 48x48 version. This can be verified by running
`xprop` and targeting Emacs's main window; you will see that the largest
icon it knows about is only 48x48.

For more information and context, see the following:
https://bugs.kde.org/show_bug.cgi?id=351055
https://specifications.freedesktop.org/wm-spec/1.4/ar01s05.html

The same problem have been discussed several times in the reddit, see:
https://www.reddit.com/r/emacs/comments/czhs57/the_emacs_icon_is_pixelated_in_plasma/
https://www.reddit.com/r/kde/comments/cnyuzw/some_icons_in_alt_tab_switcher_are_pixelated_for/
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#39238; Package emacs. (Wed, 28 Oct 2020 12:41:02 GMT) Full text and rfc822 format available.

Message #8 received at 39238 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: xs wang <wangxs1989 <at> gmail.com>
Cc: 39238 <at> debbugs.gnu.org
Subject: Re: bug#39238: 26.3; Emacs icons displaying improperly on KDE
Date: Wed, 28 Oct 2020 13:39:52 +0100
xs wang <wangxs1989 <at> gmail.com> writes:

> The 128x128 icon should be used instead, so that the large icon is pretty and not
> pixelated.
>
> The problem occurs because Emacs does not set _NET_WM_ICON_NAME to a
> 128x128 icon. Because of this, the window manager it not aware of the high-res
> icon, and is forced to display a scaled-up version of the largest icon it is aware
> of--the 48x48 version. This can be verified by running `xprop` and targeting
> Emacs's main window; you will see that the largest icon it knows about is only
> 48x48.

I don't have a KDE system to test with here -- is this problem still
present in Emacs 28?  If so, would it be possible for you to create a
patch for this problem?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Wed, 28 Oct 2020 12:41:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#39238; Package emacs. (Tue, 08 Dec 2020 18:12:02 GMT) Full text and rfc822 format available.

Message #13 received at 39238 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: xs wang <wangxs1989 <at> gmail.com>
Cc: 39238 <at> debbugs.gnu.org
Subject: Re: bug#39238: 26.3; Emacs icons displaying improperly on KDE
Date: Tue, 08 Dec 2020 19:10:50 +0100
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> I don't have a KDE system to test with here -- is this problem still
> present in Emacs 28?  If so, would it be possible for you to create a
> patch for this problem?

More information was requested, but no response was given within a 
month, so I'm closing this bug report.  If the problem still exists,
please respond to this email and we'll reopen the bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug closed, send any further explanations to 39238 <at> debbugs.gnu.org and xs wang <wangxs1989 <at> gmail.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Tue, 08 Dec 2020 18:12:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 06 Jan 2021 12:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 116 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.