Skip to content

Commit 6ad847e

Browse files
authored
Merge branch 'main' into leolost/windowclone-allocate
2 parents db16bca + 4c11882 commit 6ad847e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Widgets/WindowClone.vala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,10 @@ public class Gala.WindowClone : Clutter.Actor {
190190
private void load_clone (bool was_waiting = false) {
191191
var actor = (Meta.WindowActor) window.get_compositor_private ();
192192
if (actor == null) {
193-
Idle.add (() => {
194-
if (window.get_compositor_private () != null)
195-
load_clone (true);
196-
return Source.REMOVE;
193+
ulong shown_handler = 0;
194+
shown_handler = window.shown.connect (() => {
195+
load_clone (true);
196+
window.disconnect (shown_handler);
197197
});
198198

199199
return;

0 commit comments

Comments
 (0)