Bug 488306 - (Plasma 6) Firefox Picture-In-Picture Not In Alt+Tab Despite Window Rule Configuration
Summary: (Plasma 6) Firefox Picture-In-Picture Not In Alt+Tab Despite Window Rule Conf...
Status: REPORTED
Alias: None
Product: kwin
Classification: Plasma
Component: rules (show other bugs)
Version: 6.0.5
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-10 14:32 UTC by Megaguy32
Modified: 2024-07-24 12:02 UTC (History)
3 users (show)

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


Attachments
window rules configuration & old plasma feature to change window type (208.07 KB, image/png)
2024-06-10 14:32 UTC, Megaguy32
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Megaguy32 2024-06-10 14:32:45 UTC
Created attachment 170342 [details]
window rules configuration & old plasma feature to change window type

SUMMARY

https://www.reddit.com/r/kde/comments/1be7nkp/plasma_6_firefox_pictureinpicture_not_in_alttab/

I've got kde window rules set up to my preference for Firefox's Picture-in-Picture feature.
I have skip switcher set to force no
But despite this configuration it doesn't behave as intended. the picture-in-picture window doesn't appear in the task switcher menu when I alt+tab, nor when I invoke the overview effect. This used to work on previous plasma 5.

I have tried logging out and back in, restarting kwin / plasmashell / firefox. but none works.

If anyone can advise on how to go about reporting this issue, or solving, I'd appreciate!

ps/ Thanks KDE for the hard work on Plasma 6, I'm enjoying the improvements. We're on our way to having an Epic DE once the rough edges get smoothed!

---

I see plasma used to be able to change window types but not anymore.
Perhaps someone knows the entry to put into ~/.config/kwinrulesrc to get this to work?
https://invent.kde.org/plasma/kwin/-/merge_requests/1155 

STEPS TO REPRODUCE
1.  configure kwin rules
2. open PiP in Firefox
3. Alt-Tab & see that the PiP window doesn't appear amoung other windows

OBSERVED RESULT
Alt-Tab & see that the PiP window doesn't appear among other windows

EXPECTED RESULT
Alt-Tab & see that the PiP window does appear among other windows



SOFTWARE/OS VERSIONS

Operating System: EndeavourOS 
KDE Plasma Version: 6.0.5
KDE Frameworks Version: 6.2.0
Qt Version: 6.7.1
Kernel Version: 6.9.3-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 7 5700U with Radeon Graphics
Memory: 15.0 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Manufacturer: LENOVO
Product Name: 82HU
System Version: IdeaPad Flex 5 14ALC05
Comment 1 David Edmundson 2024-06-10 18:02:39 UTC
Can you test force the opacity to 50%. 
If the opacity doesn't change, it means the problem is identifying the window, if it does the problem is in the applying side.
Comment 2 Megaguy32 2024-06-10 20:47:19 UTC
(In reply to David Edmundson from comment #1)
> Can you test force the opacity to 50%. 
> If the opacity doesn't change, it means the problem is identifying the
> window, if it does the problem is in the applying side.

Hi David, I've included the force opacity property in addition to the others and the opacity changes appropriately. but the window doesn't appear in the alt-tab windows.

I suspect it's because the PiP is a toolbar / utility  window type and is filtered out of alt-tabbing
Comment 3 Megaguy32 2024-07-24 12:02:35 UTC
 I've achieved the desired feature in a roundabout way  (now  Plasma 6.1.2) using an odd behaviour:

1. Activate Firefox PiP (Ctrl+Shift+]).
2. Fullscreen the PiP window (F).
3. Switch to another window (Alt+Tab).
4. Click back onto the PiP window.
After these steps, the PiP window now appears in the task switcher (Alt+Tab) menu, which is actualy what I want as opposed to the default behaviour of it not being available. It's just a rather convoluted method to 

There's another similar behavior:

1. Activate Firefox PiP (Ctrl+Shift+]).
2. Fullscreen the PiP window (F).
3. Activate overview (Meta+W).
Now, the PiP window appears among the overview effect and similar window presentation menus.