From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: xs wang Newsgroups: gmane.emacs.bugs Subject: bug#39238: 26.3; Emacs icons displaying improperly on KDE Date: Wed, 22 Jan 2020 15:41:32 +0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000cdcd48059cb5a8e7" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="105177"; mail-complaints-to="usenet@ciao.gmane.io" To: 39238@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 22 16:25:19 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iuHsc-000RJ1-OC for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 22 Jan 2020 16:25:18 +0100 Original-Received: from localhost ([::1]:43386 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iuHsb-0005kx-BW for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 22 Jan 2020 10:25:17 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38047) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iuHsO-0005ia-6F for bug-gnu-emacs@gnu.org; Wed, 22 Jan 2020 10:25:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iuHsM-0002Da-NO for bug-gnu-emacs@gnu.org; Wed, 22 Jan 2020 10:25:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45134) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iuHsM-0002DV-KZ for bug-gnu-emacs@gnu.org; Wed, 22 Jan 2020 10:25:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iuHsM-0001Xj-H8 for bug-gnu-emacs@gnu.org; Wed, 22 Jan 2020 10:25:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: xs wang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 22 Jan 2020 15:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 39238 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15797066945887 (code B ref -1); Wed, 22 Jan 2020 15:25:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 22 Jan 2020 15:24:54 +0000 Original-Received: from localhost ([127.0.0.1]:51105 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iuHsD-0001Wt-IQ for submit@debbugs.gnu.org; Wed, 22 Jan 2020 10:24:53 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:52686) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iuAeJ-0007Nc-5M for submit@debbugs.gnu.org; Wed, 22 Jan 2020 02:42:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40242) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iuAeH-00024K-Ib for bug-gnu-emacs@gnu.org; Wed, 22 Jan 2020 02:42:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iuAeF-0002Lh-Us for bug-gnu-emacs@gnu.org; Wed, 22 Jan 2020 02:42:01 -0500 Original-Received: from mail-io1-xd42.google.com ([2607:f8b0:4864:20::d42]:41026) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iuAeF-0002KR-QE for bug-gnu-emacs@gnu.org; Wed, 22 Jan 2020 02:41:59 -0500 Original-Received: by mail-io1-xd42.google.com with SMTP id m25so5681335ioo.8 for ; Tue, 21 Jan 2020 23:41:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=4pvJ9/iDfnm7LoNPEhaq1kRa7RvKtFzBjr6fqXt1Gb0=; b=SyHC/SZIXPYmmS4NHzG5t6mJjORhd5xUFuSxW7dVcjRLqK3XGADlH3o2kjcR5pt5gE p1EwA0KkJsh08yxr7zJx/Y7gUPR8q/xUtm4ONMiTFYhxI2R93k4hyAoX3CDdDlUMPDu0 kE66r+52juq6dyBnbz6nrUz7jdtPDdmnETe6MU3XtRU8GiKUrYJ9o+OEb4sRyFBIAF6V hDA/u43GoPnQvBHFjvqyIE7mgZOmL0Sc6LCdWlpPIh8jhQ9y+0WZJm7/zV6TP+Fi0wlt lp2OBKIaTwxA6CcAWMOgr/mTvLIYdT8XULKK3t15fi05cScmD9NIiv0QV52HIRkN6Kby MGuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=4pvJ9/iDfnm7LoNPEhaq1kRa7RvKtFzBjr6fqXt1Gb0=; b=eFyg+CNV+2sjMSxQcoqvxq2pMtQD6eHuM9UO5kdaB8GUwjHaAQLUQlAFx1RrV3xkIK 8XqZNlFElfqdH589bDLKHjdyOuRXln3MrA1jAAxLM1eD5dB5EjoYEIHeTwcctqPYqLyj Uv+G1FSEiMcKQNyqEgLc4IdRQVAc6bJBYT6UjFRda5CAEIyssK3e6OESwRerM8WXf3Nb JFIRsr/99a9QgdCKMdCj9AeK6gM+haDQ34jcgBX6oo5FkhTn/owN39lqjy9Rrt9xfmen VUazkhDVJBrCq8+FB1x6NWgdFcvP5iebHg5PCb59vHBFSGGYhVTjXJdAmvJ7hksesshI J/EA== X-Gm-Message-State: APjAAAWHQWZF3ZCbUvvZG/GBCz7PKXp5pOsLa4UVDA1QLKBQ3+Z4GoDh UjrqRIvb+mlzxA9hsUzHr5p1FedruPW7oDftP5bZLABU X-Google-Smtp-Source: APXvYqy/+l6eUJQhRC//zU1xRtGSuPOPvtjD1DK9QIu09yszrjttzO/mEsMFsqhmGpTzqFuKh7cIe6E73VhXRhTfho4= X-Received: by 2002:a02:2402:: with SMTP id f2mr5994769jaa.135.1579678918624; Tue, 21 Jan 2020 23:41:58 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Mailman-Approved-At: Wed, 22 Jan 2020 10:24:52 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:175081 Archived-At: --000000000000cdcd48059cb5a8e7 Content-Type: text/plain; charset="UTF-8" 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/ --000000000000cdcd48059cb5a8e7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
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.
<= br>

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 Sw= itcher > 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 pict= ure link.


Expected results:

The 128x128 icon should be us= ed 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 ic= on. 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 awar= e of--the 48x48 version. This can be verified by running `xprop` and target= ing Emacs's main window; you will see that the largest icon it knows ab= out is only 48x48.

For more information and context, see the followi= ng:
https://bu= gs.kde.org/show_bug.cgi?id=3D351055
https://specifications.freedesk= top.org/wm-spec/1.4/ar01s05.html

The same problem ha= ve been discussed several times in the reddit, see:
--000000000000cdcd48059cb5a8e7--