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.
1 parent 87c5c82 commit 4c11882Copy full SHA for 4c11882
src/Widgets/WindowClone.vala
@@ -186,10 +186,10 @@ public class Gala.WindowClone : Clutter.Actor {
186
private void load_clone (bool was_waiting = false) {
187
var actor = (Meta.WindowActor) window.get_compositor_private ();
188
if (actor == null) {
189
- Idle.add (() => {
190
- if (window.get_compositor_private () != null)
191
- load_clone (true);
192
- return Source.REMOVE;
+ ulong shown_handler = 0;
+ shown_handler = window.shown.connect (() => {
+ load_clone (true);
+ window.disconnect (shown_handler);
193
});
194
195
return;
0 commit comments