mirror of
https://github.com/elementary/gala.git
synced 2024-11-25 03:06:14 +01:00
WindowClone: Only load after shown (#2072)
This commit is contained in:
parent
87c5c82231
commit
4c118826b1
@ -186,10 +186,10 @@ public class Gala.WindowClone : Clutter.Actor {
|
|||||||
private void load_clone (bool was_waiting = false) {
|
private void load_clone (bool was_waiting = false) {
|
||||||
var actor = (Meta.WindowActor) window.get_compositor_private ();
|
var actor = (Meta.WindowActor) window.get_compositor_private ();
|
||||||
if (actor == null) {
|
if (actor == null) {
|
||||||
Idle.add (() => {
|
ulong shown_handler = 0;
|
||||||
if (window.get_compositor_private () != null)
|
shown_handler = window.shown.connect (() => {
|
||||||
load_clone (true);
|
load_clone (true);
|
||||||
return Source.REMOVE;
|
window.disconnect (shown_handler);
|
||||||
});
|
});
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user