mirror of
https://github.com/elementary/gala.git
synced 2024-08-16 18:40:27 +03:00
pip: Don't try to show for destroyed actor (#427)
Fixes a glitch where the appears_focused property would change before the window got unmanaged and therefore show the PiP window for a split second before closing it. We now check if the window actor is still shown and if not, we don't do anything. Fixes #422
This commit is contained in:
parent
cf8d4556d0
commit
66a95e05b6
@ -312,7 +312,7 @@ public class Gala.Plugins.PIP.PopupWindow : Clutter.Actor
|
||||
var window = window_actor.get_meta_window ();
|
||||
if (window.appears_focused) {
|
||||
hide ();
|
||||
} else {
|
||||
} else if (!window_actor.is_destroyed ()) {
|
||||
show ();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user