Skip to content

Commit 4c11882

Browse files
authored
WindowClone: Only load after shown (#2072)
1 parent 87c5c82 commit 4c11882

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
@@ -186,10 +186,10 @@ public class Gala.WindowClone : Clutter.Actor {
186186
private void load_clone (bool was_waiting = false) {
187187
var actor = (Meta.WindowActor) window.get_compositor_private ();
188188
if (actor == null) {
189-
Idle.add (() => {
190-
if (window.get_compositor_private () != null)
191-
load_clone (true);
192-
return Source.REMOVE;
189+
ulong shown_handler = 0;
190+
shown_handler = window.shown.connect (() => {
191+
load_clone (true);
192+
window.disconnect (shown_handler);
193193
});
194194

195195
return;

0 commit comments

Comments
 (0)