WindowClone: Only load after shown (#2072)

This commit is contained in:
Leonhard 2024-10-11 19:53:43 +02:00 committed by GitHub
parent 87c5c82231
commit 4c118826b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;