We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents db16bca + 4c11882 commit 6ad847eCopy full SHA for 6ad847e
src/Widgets/WindowClone.vala
@@ -190,10 +190,10 @@ public class Gala.WindowClone : Clutter.Actor {
190
private void load_clone (bool was_waiting = false) {
191
var actor = (Meta.WindowActor) window.get_compositor_private ();
192
if (actor == null) {
193
- Idle.add (() => {
194
- if (window.get_compositor_private () != null)
195
- load_clone (true);
196
- return Source.REMOVE;
+ ulong shown_handler = 0;
+ shown_handler = window.shown.connect (() => {
+ load_clone (true);
+ window.disconnect (shown_handler);
197
});
198
199
return;
0 commit comments