Bug 469864 - Always on top is not respected
Summary: Always on top is not respected
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: core (show other bugs)
Version: 5.27.4
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-16 20:06 UTC by viktor.horsmanheimo
Modified: 2023-06-17 03:45 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 viktor.horsmanheimo 2023-05-16 20:06:48 UTC
Essentially the bug is that always on top does not entirely work. An example program you can try to use to replicate this bug is "Runelite" (https://github.com/runelite/runelite), I'm using the appimage.

If you place a window border at under the application you can click through the game and resize the underlying application.


STEPS TO REPRODUCE
1. Start game
2. Set always on top from "Right side panel wrench -> search for 'Runelite' -> enable 'Always on top'"
3. Place a window underneath the application (Note it does not seem to work with applications with custom borders such as steam)

OBSERVED RESULT
You can see that the window underneath is resizable, you click through the top window.

EXPECTED RESULT
That you can't resize the window when another is above it.

SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux 
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8
Kernel Version: 6.1.25-1-MANJARO (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 7 3700X 8-Core Processor
Memory: 31,3 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 2070 SUPER/PCIe/SSE2
Manufacturer: Micro-Star International Co., Ltd
Product Name: MS-7C02
System Version: 1.0

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2023-05-17 19:44:24 UTC
There may be some confusion here; "always on top" doesn't mean that windows lower in the stacking order aren't resizable. It just means that the window marked as "always on top" is never overlapped by another window going over it.
Comment 2 viktor.horsmanheimo 2023-05-17 19:55:51 UTC
(In reply to Nate Graham from comment #1)
> There may be some confusion here; "always on top" doesn't mean that windows
> lower in the stacking order aren't resizable. It just means that the window
> marked as "always on top" is never overlapped by another window going over
> it.

It seems to have disappeared after restart, but it's not that the lower stacking order shouldn't be resizable, but that you literally clicked through the window. The top window was not registering the clicks, sadly I do not have a video of this.
Comment 3 Nate Graham 2023-05-17 19:56:59 UTC
That's odd. What part of the window clicked through? An area that was clearly opaque, or an area around the edges, like in the shadow?
Comment 4 viktor.horsmanheimo 2023-05-17 19:57:24 UTC
(In reply to Nate Graham from comment #1)
> There may be some confusion here; "always on top" doesn't mean that windows
> lower in the stacking order aren't resizable. It just means that the window
> marked as "always on top" is never overlapped by another window going over
> it.

Never mind, I just figured out how to reproduce the issue, it has to do with multiple monitors. You need to move the window to the second screen and back.
Comment 5 viktor.horsmanheimo 2023-05-17 20:02:32 UTC
(In reply to Nate Graham from comment #3)
> That's odd. What part of the window clicked through? An area that was
> clearly opaque, or an area around the edges, like in the shadow?

I'll record a video.(In reply to Nate Graham from comment #3)
> That's odd. What part of the window clicked through? An area that was
> clearly opaque, or an area around the edges, like in the shadow?

I made a video to show the POC of it https://youtu.be/HlY1U5E1UnY.
Comment 6 Nate Graham 2023-05-18 14:19:27 UTC
Thanks, that;s helpful. Let's do some investigation. Can you try the following:
- Unset "always on top" for that window and see if it still happens
- Set "always on top for another window" and see if it still happens
- Try to make it happen with another window that doesn't have "always on top"
- Try all of the following on Wayland and see if it still happens
Comment 7 viktor.horsmanheimo 2023-05-18 16:45:31 UTC
(In reply to Nate Graham from comment #6)
> Thanks, that;s helpful. Let's do some investigation. Can you try the
> following:
> - Unset "always on top" for that window and see if it still happens
> - Set "always on top for another window" and see if it still happens
> - Try to make it happen with another window that doesn't have "always on top"
> - Try all of the following on Wayland and see if it still happens

1. Does not seem to happen without always on top
2. It does not seem to happen with two always on top windows, I believe it's due to the fact that the lower one having to be moved offscreen. If you move the top one it does not seem to happen.
3. It seems to work with any program that does not have a custom window theme. Tested with firefox, thunderbird and discord that it works and that it does not work with steam.
4. I don't currently have a wayland machine, I'll try to set one up, I'll get back to you.
Comment 8 Bug Janitor Service 2023-06-02 03:45:19 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 9 Bug Janitor Service 2023-06-17 03:45:04 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!