mirror of
https://github.com/elementary/gala.git
synced 2024-09-11 15:15:39 +03:00
Fixed: closed windows being selectable with PIP (#355)
This commit is contained in:
parent
9747bd6173
commit
feffbf8a93
@ -148,7 +148,8 @@ public class Gala.Plugins.PIP.Plugin : Gala.Plugin
|
|||||||
|
|
||||||
var window = actor.get_meta_window ();
|
var window = actor.get_meta_window ();
|
||||||
var rect = window.get_frame_rect ();
|
var rect = window.get_frame_rect ();
|
||||||
if (!window.is_hidden () && !window.is_skip_taskbar () && meta_rectangle_contains (rect, x, y)) {
|
|
||||||
|
if (!actor.is_destroyed () && !window.is_hidden () && !window.is_skip_taskbar () && meta_rectangle_contains (rect, x, y)) {
|
||||||
selected = actor;
|
selected = actor;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -171,7 +172,7 @@ public class Gala.Plugins.PIP.Plugin : Gala.Plugin
|
|||||||
}
|
}
|
||||||
|
|
||||||
var window = actor.get_meta_window ();
|
var window = actor.get_meta_window ();
|
||||||
if (!window.is_hidden () && !window.is_skip_taskbar () && window.has_focus ()) {
|
if (!actor.is_destroyed () && !window.is_hidden () && !window.is_skip_taskbar () && window.has_focus ()) {
|
||||||
active = actor;
|
active = actor;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user