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:
Adam Bieńkowski 2018-12-05 10:44:19 +01:00 committed by Rico Tzschichholz
parent cf8d4556d0
commit 66a95e05b6

View File

@ -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 ();
}