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) {
|
||||
var actor = (Meta.WindowActor) window.get_compositor_private ();
|
||||
if (actor == null) {
|
||||
Idle.add (() => {
|
||||
if (window.get_compositor_private () != null)
|
||||
load_clone (true);
|
||||
return Source.REMOVE;
|
||||
ulong shown_handler = 0;
|
||||
shown_handler = window.shown.connect (() => {
|
||||
load_clone (true);
|
||||
window.disconnect (shown_handler);
|
||||
});
|
||||
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user