[kwin] [Bug 481577] ship a window rule to keep picture-in-picture windows above

2024-03-09 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=481577

--- Comment #7 from Nate Graham  ---
Indeed. It's a shame, I'd like to ship a workaround too, as this is a real
issue that annoys people. But as you can see, sometimes life doesn't cooperate!

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 481577] ship a window rule to keep picture-in-picture windows above

2024-03-08 Thread Mariusz Libera
https://bugs.kde.org/show_bug.cgi?id=481577

Mariusz Libera  changed:

   What|Removed |Added

 Resolution|--- |INTENTIONAL
 Status|REPORTED|RESOLVED

--- Comment #6 from Mariusz Libera  ---
(In reply to Nate Graham from comment #5)
> An exact title match for "Picture-in-Picture" might work in English, but
> does this still work if the system is in another language?

Good point, just checked, Firefox does indeed translate that. Wouldn't expect
it. Well, this is pretty hopeless then.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 481577] ship a window rule to keep picture-in-picture windows above

2024-03-08 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=481577

--- Comment #5 from Nate Graham  ---
An exact title match for "Picture-in-Picture" might work in English, but does
this still work if the system is in another language?

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 481577] ship a window rule to keep picture-in-picture windows above

2024-03-08 Thread Mariusz Libera
https://bugs.kde.org/show_bug.cgi?id=481577

--- Comment #4 from Mariusz Libera  ---
(In reply to Vlad Zahorodnii from comment #3)
> > above=true
> > aboverule=3
> 
> in plasma 6, I recommend to create a "layer" window rule instead to force
> pip windows to be placed in the overlay layer. With that, pip windows will
> be visible even if there's a fullscreen window.

I wasn't aware of that, but it works even better.

Description=Picture in picture for firefox
layer=overlay
layerrule=2
title=Picture-in-Picture
titlematch=1
types=1
wmclass=firefox
wmclassmatch=1

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 481577] ship a window rule to keep picture-in-picture windows above

2024-03-08 Thread Vlad Zahorodnii
https://bugs.kde.org/show_bug.cgi?id=481577

--- Comment #3 from Vlad Zahorodnii  ---
> above=true
> aboverule=3

in plasma 6, I recommend to create a "layer" window rule instead to force pip
windows to be placed in the overlay layer. With that, pip windows will be
visible even if there's a fullscreen window.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 481577] ship a window rule to keep picture-in-picture windows above

2024-03-08 Thread Mariusz Libera
https://bugs.kde.org/show_bug.cgi?id=481577

--- Comment #2 from Mariusz Libera  ---
(In reply to Nate Graham from comment #1)
> I would be super in favor of this if it works properly. Does it work fine
> with new PiP windows, not just the one you created it for? And are there
> rules that work for all PiP windows for both Firefox and Chrome/Chromium?
> Can you test those?

This rule works fine for me, no issues whatsoever:

Description=Picture in picture for firefox
above=true
aboverule=3
title=Picture-in-Picture
titlematch=1
types=1
wmclass=firefox
wmclassmatch=1

Chrome seems to work fine out of the box, if it's run in xwayland, native
wayland version needs a rule:

Description=Picture in picture for chrome
above=true
aboverule=3
title=Picture in picture
titlematch=1
types=1
wmclass=chrome
wmclassmatch=1

I would imagine that a regex would be needed to catch all chromium based
browsers in 'wmclass'.
By the way, it would be nice if there was a checkbox to enable/disable window
rules instead of having to delete and recreate them to test.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 481577] ship a window rule to keep picture-in-picture windows above

2024-02-21 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=481577

Nate Graham  changed:

   What|Removed |Added

 CC||n...@kde.org
   Severity|normal  |wishlist
  Component|general |wayland-generic

--- Comment #1 from Nate Graham  ---
I would be super in favor of this if it works properly. Does it work fine with
new PiP windows, not just the one you created it for? And are there rules that
work for all PiP windows for both Firefox and Chrome/Chromium? Can you test
those?

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 481577] ship a window rule to keep picture-in-picture windows above

2024-02-20 Thread Bug Janitor Service
https://bugs.kde.org/show_bug.cgi?id=481577

Bug Janitor Service  changed:

   What|Removed |Added

   Keywords||qt6

-- 
You are receiving this mail because:
You are watching all bug changes.