Cannot apply window rules to Floorp's Picture-in-Picture

I don’t seem to be able to apply window rules to the Picture-in-Picture sub-window of Floorp. Though I close the program after creating the window rule and I try again repeatedly, it seems like the window is not targeted at all, because even rules which shouldn’t be overwritten after opening are not applied, such as the “Keep above others” and the “On all desktops” ones: Screencast_20250621_113410.webm - Nextcloud

Hi - just double-checking, if you detect the window properties of the Picture-in-Picture window that appears, does everything still match with what’s in the window rule?

And, could you try a similar rule in another browser, like either standard Firefox or a Chromium, just to check if it works there?

Here is what I used to have the PiP window stay on top (and nothing else):

Now, getting there was not working well, to be sure. Just creating a rule didn’t seem to take. I already had this set up for Firefox, so I initially used it as a template - not duplicating the rule - by detecting the window properties, and adding the elements and matching the settings.

This did not work at all.

However, after some frustrations, I did go and duplicate my FF rule (probably created well over a year ago), changed the Window Class to floorp, and it worked. :confused:

Here is the contents from my ~/.config/kwinrulesrc which does include other rules

[05537a83-2c47-4760-a3cd-376dfe78e3e2]
aboverule=2

[General]
count=3
rules=ba6a856b-d08a-4274-9b5e-d5c6ca541998,d34ea38e-c5a8-4669-9065-676614cdb766,d78025de-49c3-495e-8999-05e7392d4ce6

[ba6a856b-d08a-4274-9b5e-d5c6ca541998]
Description=Grayjay
clientmachine=localhost
position=4,317
positionrule=3
size=1118,759
sizerule=3
title=Grayjay
titlematch=1
wmclassmatch=1

[d34ea38e-c5a8-4669-9065-676614cdb766]
Description=FF PiP
above=true
aboverule=2
title=Picture-in-Picture
titlematch=1
wmclass=firefox
wmclassmatch=1

[d78025de-49c3-495e-8999-05e7392d4ce6]
Description=Floorp PiP
above=true
aboverule=2
title=Picture-in-Picture
titlematch=1
wmclass=floorp
wmclassmatch=1

Maybe you can edit your existing rule to match this as a starting point, then add the other settings one at a time to test?

I am not sure if the ordering of these rules makes any difference, at least in my case.

1 Like