Skip to content

Commit

Permalink
WindowClone: Only load after shown (#2072)
Browse files Browse the repository at this point in the history
  • Loading branch information
leolost2605 authored Oct 11, 2024
1 parent 87c5c82 commit 4c11882
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Widgets/WindowClone.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4c11882

Please sign in to comment.