Client: implement toplevel icon protocol
This allows QWindow::setIcon to work on desktops that support the
standards. If an icon name is set, we assume it's from an installed
theme and provide the name, otherwise we provide buffers.
For SVGs the size hint from the compositor is used, otherwise we supply
pixmap data in all the sizes we have available.
[ChangeLog][Third-Party Code] New protocol synced from wayland-protocols
Change-Id: Iabbd928a3476aafa2d63a81e68299049e59991db
Reviewed-by: David Redondo <qt@david-redondo.de>
| commit | ed1fd7f15835763e6cbf9b90f3b01eb57a5742ed |
| parent | 6f8e87ad6fbe7171559d9373e8cc337d07c75096 |
| author | David Redondo <qt@david-redondo.de> |
| committer | David Edmundson <davidedmundson@kde.org> |
| commit time | Thu, 31 Oct 2024 14:53:19 +0000 |
- A src/3rdparty/protocol/xdg-toplevel-icon/qt_attribution.json
- A src/3rdparty/protocol/xdg-toplevel-icon/xdg-toplevel-icon-v1.xml
- M src/client/qwaylandshellsurface_p.h
- M src/client/qwaylandwindow.cpp
- M src/plugins/shellintegration/xdg-shell/CMakeLists.txt
- M src/plugins/shellintegration/xdg-shell/qwaylandxdgshell.cpp
- M src/plugins/shellintegration/xdg-shell/qwaylandxdgshell_p.h
- A src/plugins/shellintegration/xdg-shell/qwaylandxdgtopleveliconv1.cpp
- A src/plugins/shellintegration/xdg-shell/qwaylandxdgtopleveliconv1_p.h