Bug 460819

Summary: Dialog Parent does not dim parent window on Wayland
Product: [Plasma] kwin Reporter: Nate Graham <nate>
Component: effects-variousAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: ashark, bugseforuns, kde, postix, sam
Priority: NOR Keywords: wayland
Version: git master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: Plasma 6.1 with Qt 6.8

Description Nate Graham 2022-10-21 18:10:39 UTC
Works for me on X11, doesn't work on Wayland.

Everything KDE from current git master.
Comment 1 Nate Graham 2023-05-08 14:58:08 UTC
Fixed in Plasma 6 now.
Comment 2 Andrew Shark 2023-08-27 15:52:29 UTC
Are you sure it is fixed? Can you specify how have you tested that?

I get the following results (tested with Plasma 5):
Wayland session:
[kde wayland] gwenview - X
[kde xwayland] gwenview - V
[qt wayland] qtcreator - X
[qt xwayland] qtcreator - X
[gtk wayland] inkscape - X
[gtk xwayland] inkscape - X
[java xwayland] pycharm - X

X11 session:
[kde] gwenview - V
[qt] qtcreator - V
[gtk] inkscape - V
[java] pycharm - X

But I also tested the Plasma 6 session (with KaOS 2023.07.23).
Wayland session:
[kde wayland] gwenview - X
[kde xwayland] gwenview - V

This case is exactly the same as in Plasma 5.
Comment 3 Andrew Shark 2023-08-27 16:05:28 UTC
Oops, I used wrong var for inkscape. I needed GDK_BACKEND=x11.
So the correct is:
[gtk xwayland] inkscape - V

P.S. I hate that bugzilla does not allow to edit the comments.
Comment 4 Andrew Shark 2023-08-27 16:25:15 UTC
Another edit. Now I see `QT_QPA_PLATFORM=xcb qtcreator` also actually works.
So the correct is:
[qt xwayland] qtcreator - V

P.S. Probably I had made a wrong  result note, because of another bug. I set the qt creator to launch with xcb. But when session restoration, this is ignored, and launched on native wayland. But I was assuming it was xcb not working.
Comment 5 Andrew Shark 2023-08-27 16:36:50 UTC
Another hint. For testing with java, you may go with **freeplane** (mind map app). It is much more lightweight compared to PyCharm.
Comment 6 Andrew Shark 2023-09-01 16:03:30 UTC
I have tested with qt packages 6.6.0beta3-1 from kde-unstable. Still it does not work.
The problem, as I can see, is that it is impossible to set a type of a window as a dialog window? When you detect their properties, they appear as normal window type. I also tried to make a window rule to force use the dialog type on them. But the property is not applied. And next time you visit your rule, you see, it has been changed to force "normal" window.
Comment 7 Kai Uwe Broulik 2023-11-21 08:45:42 UTC
This needs a new Wayland dialog protocol, cf. https://invent.kde.org/plasma/kwin/-/merge_requests/4244
Comment 9 Kai Uwe Broulik 2024-04-04 11:30:23 UTC
Qt has been merged, so has KWin. So on Plasma 6.1 with Qt 6.8 it should work.