Bug 443922 - Telegram from the tray always opens on the monitor with a tray, and not where it was before the closure
Summary: Telegram from the tray always opens on the monitor with a tray, and not where...
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 5.23.0
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: multiscreen
Depends on:
Blocks:
 
Reported: 2021-10-17 22:10 UTC by Anton K
Modified: 2022-01-19 20:10 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anton K 2021-10-17 22:10:21 UTC
SUMMARY

Now the Telegram (flatpak or appimage) from the tray always opens on the monitor with the tray. For example, if the tray is on the left monitor, but before closing (click on the icon in the tray), the telegrams were on the screen on the right, but it still opens on the left. 

And I can't configure on what screen to open a Telegram - in the settings of individual windows. (only "Screen" option is ignored) It seems close bug: https://bugs.kde.org/show_bug.cgi?id=439022

I think such a problem may be not only with Telegram?
But there is no such problem with the VLC.
 
The error is relevant only on Wayland, on x11 Telegrams open at the previous place (which is expected). 

I do not know how it is in previous versions. 

SOFTWARE/OS VERSIONS
Operating System: KDE neon 5.23
KDE Plasma Version: 5.23.0
KDE Frameworks Version: 5.87.0
Qt Version: 5.15.3
Comment 1 Anton K 2021-10-17 22:25:51 UTC
(In reply to Anton K from comment #0)
> SOFTWARE/OS VERSIONS
> Operating System: KDE neon 5.23
> KDE Plasma Version: 5.23.0
> KDE Frameworks Version: 5.87.0
> Qt Version: 5.15.3

It turns out that I can configure to configure on the settings on the screen in the window rules, but it is ignored when clicking on the icon in the tray. 
Maybe these are the consequences of these fixes (https://bugs.kde.org/show_bug.cgi?id=439986)?
Comment 2 Vlad Zahorodnii 2021-10-18 06:27:26 UTC
Wayland apps can't indicate the screen where they should open. This will be fixed in the future with the xdg-session protocol.

(In reply to Anton K from comment #1)
> It turns out that I can configure to configure on the settings on the screen
> in the window rules, but it is ignored when clicking on the icon in the
> tray.

It appears like window rules are disabled for telegram on wayland because telegram uses one of our proprietary desktop shell protocols that apps should not use.

> Maybe these are the consequences of these fixes
> (https://bugs.kde.org/show_bug.cgi?id=439986)?
Comment 3 Vlad Zahorodnii 2021-10-18 06:28:35 UTC
If an app uses the plasma shell protocol, kwin will think that the corresponding window belongs to desktop shell so it will disable window rules for it.
Comment 4 Anton K 2021-10-18 16:08:36 UTC
(In reply to Vlad Zahorodnii from comment #3)
> If an app uses the plasma shell protocol, kwin will think that the
> corresponding window belongs to desktop shell so it will disable window
> rules for it.

https://i.imgur.com/k6EA8jn.png
I can create rules through the settings and it seems they even work somehow. But they do not fire when you click on the tray icon.
Comment 5 Vlad Zahorodnii 2021-10-18 16:48:59 UTC
telegram doesn't start using our proprietary desktop shell protocol immediately, it starts using it after committing initial properties so kwin can evaluate window rules before it sees that telegram wants to use the plasma-shell protocol.
Comment 6 Vlad Zahorodnii 2022-01-19 20:10:49 UTC
we removed the window rule limitation for plasmashell surfaces, so I guess this issue can be marked "fixed"