Diffusion KWin b7bd5f9a09cb

Add support for desktopFileName provided by NETWinInfo

Authored by graesslin on Oct 27 2016, 1:59 PM.

Description

Add support for desktopFileName provided by NETWinInfo

Summary:
KWindowSystem provides a KDE specific property for the desktop file
name. This allows KWin to take the icon from the desktop file. The
advantage from the desktop file is that KWin normally gets higher
resolution icons than provided through the xproperty based icons used
previously. If the desktop file does not provide an icon name, KWin
falls back to the previous implementation.

As on Wayland the icon is taken from the desktop file name already the
code for X11 and Wayland is merged in AbstractClient. Also to the
PlasmaWindowInterface the appId is taken from the new desktop file
instead of the resourceName. Due to that for Xwayland windows where KWin
knows the desktop file name it can be passed to PlasmaWindowInterface.
This allows e.g. the task manager to better map the windows to
applications and provide better icons. Also it means that icons do not
need to be passed as bitmap data to the clients.

Test Plan:
Verified that icon is taking from desktop file if provided and
from X property if not provided and that Wayland windows still have icon.

Reviewers: KWin, Plasma on Wayland, hein

Subscribers: plasma-devel, kwin

Tags: Plasma on Wayland, KWin

Differential Revision: https://phabricator.kde.org/D3177

Details

Committed
graesslinOct 31 2016, 12:19 PM
Differential Revision
D3177: Add support for desktopFileName provided by NETWinInfo
Parents
R108:13f142b1bf8f: Merge branch 'Plasma/5.8'
Branches
Unknown
Tags
Unknown