Bug 461910 - Implement minimize to tray
Summary: Implement minimize to tray
Status: RESOLVED UPSTREAM
Alias: None
Product: kwayland-integration
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR major
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-16 13:13 UTC by Juan Simón
Modified: 2023-04-02 20:40 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Screenshot with X11 (1.69 MB, image/png)
2022-11-24 19:42 UTC, Johannes Kalliauer
Details
Screenshot with Wayland (563.38 KB, image/png)
2022-11-24 19:42 UTC, Johannes Kalliauer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Juan Simón 2022-11-16 13:13:06 UTC
```
Operating System: Arch Linux
KDE Plasma Version: 5.26.3
KDE Frameworks Version: 5.99.0
Qt Version: 5.15.7
Kernel Version: 6.0.8-native_amd-xanmod1-1 (64-bit)
Graphics Platform: X11
Processors: 64 × AMD Ryzen Threadripper 3970X 32-Core Processor
Memory: 62.7 GiB of RAM
Graphics Processor: AMD Radeon RX 580 Series
Manufacturer: ASUS
```

I can't use Wayland because it doesn't have the option to minimize to the tray bar.
Comment 1 Nicolas Fella 2022-11-16 13:22:36 UTC
What do you mean with "it doesn't have the option to minimize to the tray bar."? That's a feature some apps have, what does it have to do with Wayland?
Comment 2 David Edmundson 2022-11-16 13:24:28 UTC
Please include screenshots of any differences it might be clearer
Comment 3 Andrew Shark 2022-11-17 18:55:29 UTC
The original topic was about supporting wayland by kdocker: https://github.com/user-none/KDocker/issues/95

I think the author wanted to ask "support of force traying windows in plasma on wayland".

Can you clarify how it works in X11 that some external apps such as AllTray or KDocker can change window properties so it becomes "tray minimized". Is that possible in Wayland? Probably not by KDocker, but by Plasma itself.
Comment 4 Johannes Kalliauer 2022-11-24 19:42:31 UTC
Created attachment 153998 [details]
Screenshot with X11

Screenshot with X11
Comment 5 Johannes Kalliauer 2022-11-24 19:42:48 UTC
Created attachment 153999 [details]
Screenshot with Wayland

Screenshot with Wayland
Comment 6 Johannes Kalliauer 2022-11-24 19:54:12 UTC
@NicolasFella: With KDocker you can minimize all apps to tray. [1-4] AllTray [5-8] can do the same, but also doesn't work on Wayland. LG von einem Österreicher

@DavidEdmundson: I attached two screenshots, one with X11 how it should work, and one on Wayland where it does not work.

[1] Website: https://kdocker.sourceforge.net/
[2] source-code: https://github.com/user-none/KDocker/releases/tag/5.4
[3] Ubuntu: https://manpages.ubuntu.com/manpages/focal/man1/kdocker.1.html
[4] Fedora: https://src.fedoraproject.org/rpms/kdocker
[5] Documentation: https://linux.die.net/man/1/alltray
[6] GitHub: https://github.com/mbt/alltray
[7] Ubuntu: https://wiki.ubuntuusers.de/Archiv/AllTray/
[8] Fedora: https://fedora.pkgs.org/37/rpm-sphere-x86_64/alltray-0.7.6dev-0.x86_64.rpm.html
Comment 7 Nate Graham 2022-11-30 04:24:07 UTC
> Is that possible in Wayland?
Yes, the app has to implement it. Tons already do.

> Probably not by KDocker, but by Plasma itself.
Plasma doesn't have this feature; see Bug 428873.
Comment 8 Nate Graham 2022-11-30 04:27:50 UTC
Oh I see, KDocker is a tool to implement the ability to minimize arbitrary apps to the tray, and it doesn't work on Wayland due to Wayland limitations.

This is something the KDocker developers would have to propose fixing upstream, using a new optional Wayland protocol to govern it, which compositors would then optionally implement support for
Comment 9 Andrew Shark 2022-12-01 00:59:55 UTC
What is a right upstream place? I have found this: https://gitlab.freedesktop.org/wayland/wayland/-/issues/337 But it is closed.