systray: Double program icons in the system tray #414

Open
roman wants to merge 1 commits from feat/whatever into master
roman commented 5 months ago
Collaborator

Signed-off-by: Roman Savochenko roman@roman.home

Prevents the system tray from show program icons with different WMID but equal names like to BlueMan.

Signed-off-by: Roman Savochenko <roman@roman.home> Prevents the system tray from show program icons with different WMID but equal names like to BlueMan.
roman added 1 commit 5 months ago
01a0e7e1e4
systray: Double program icons in the system tray
roman added the SL/trivial label 5 months ago
roman added a new dependency 5 months ago
MicheleC requested changes 5 months ago
MicheleC left a comment
Owner

This patch is not acceptable as is. If you have two different windows with the same name, you will lose the icon for the second window.
I did a simple test: build kicker with the patch, open two kcalc windows and use tdedocker to dock them to the system tray. Only one icon is shown and when the first kcalc is undocked and closed, the second kcalc is not accessible anywhere. I had to kill kcalc from htop.

Perhaps a better suggestion would be to have a menu associated with icons with the same name: this way the user can use the submenu to select the required window.

This patch is not acceptable as is. If you have two different windows with the same name, you will lose the icon for the second window. I did a simple test: build kicker with the patch, open two kcalc windows and use tdedocker to dock them to the system tray. Only one icon is shown and when the first kcalc is undocked and closed, the second kcalc is not accessible anywhere. I had to kill kcalc from htop. Perhaps a better suggestion would be to have a menu associated with icons with the same name: this way the user can use the submenu to select the required window.
Owner

For the records, this PR relates to issue #413

For the records, this PR relates to issue #413
roman commented 5 months ago
Poster
Collaborator

In the case of BlueMan the window in fact single due to I cannot to close one without closing other.
And I never start kcalc or some other like that in the system tray, only krusader and it is always is single. :)

In the case of BlueMan the window in fact single due to I cannot to close one without closing other. And I never start kcalc or some other like that in the system tray, only krusader and it is always is single. :)
Owner

I normally use KOrn or KBiff to monitor mailboxes. In the case of KOrn there I have set more configurations with different rules where each configuration shows its own icon. With KBiff I run more instances, each with different configuration with different rules. Again each KBiff with their own icon. This PR, as it is, would break the required functionality.

I normally use KOrn or KBiff to monitor mailboxes. In the case of KOrn there I have set more configurations with different rules where each configuration shows its own icon. With KBiff I run more instances, each with different configuration with different rules. Again each KBiff with their own icon. This PR, as it is, would break the required functionality.
roman commented 5 months ago
Poster
Collaborator

OK, when this feature will be optional also as "Show Clock in the system tray"?

OK, when this feature will be optional also as "Show Clock in the system tray"?
roman changed title from systray: Double program icons in the system tray to WIP: systray: Double program icons in the system tray 5 months ago
roman force-pushed feat/whatever from 01a0e7e1e4 to 97ecc0a2ce 5 months ago
roman commented 5 months ago
Poster
Collaborator

Appended for the check box "Oppress double named icons".

Appended for the check box "Oppress double named icons".
roman changed title from WIP: systray: Double program icons in the system tray to systray: Double program icons in the system tray 5 months ago
Owner

Appended for the check box "Oppress double named icons".

You are missing the point @roman, it is not about having one config option or not.
Hiding icons for multiple windows with the same name is wrong, it makes windows no longer accessible. There is no way a PR like that would be accepted.
What would be accepted is a PR where windows with the same name are grouped together in a submenu and use the icon as access to that menu. Pretty much what the taskbar does if grouping is selected, to explain the idea. That way, all windows are always accessible while at the same time using a single icon slot in the systray applet.

EDIT: the config option would decide whether to group windows or not.

> Appended for the check box "Oppress double named icons". You are missing the point @roman, it is not about having one config option or not. Hiding icons for multiple windows with the same name is wrong, it makes windows no longer accessible. There is no way a PR like that would be accepted. What would be accepted is a PR where windows with the same name are *grouped* together in a submenu and use the icon as access to that menu. Pretty much what the taskbar does if grouping is selected, to explain the idea. That way, all windows are always accessible while at the same time using a single icon slot in the systray applet. EDIT: the config option would decide whether to group windows or not.
roman commented 5 months ago
Poster
Collaborator

For me that is about to show in the system tray only icons of the system-service programs, which is only one always, then that is true.
So use the task bar for grouping and not the system tray.

For me that is about to show in the system tray only icons of the system-service programs, which is only one always, then that is true. So use the task bar for grouping and not the system tray.

Reviewers

MicheleC requested changes 5 months ago
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
3 Participants
Notifications
Due Date

No due date set.

Reference: TDE/tdebase#414
Loading…
There is no content yet.