Skip to content

Commit 38657d6

Browse files
committed
WindowTracker: track windows only when it becomes visible
1 parent 0a36c2c commit 38657d6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/WindowTracker.vala

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@ public class Gala.WindowTracker : GLib.Object {
2828
}
2929

3030
private void init_window_tracking (Meta.Display display) {
31-
display.window_created.connect (track_window);
31+
display.window_created.connect ((window) => {
32+
InternalUtils.wait_for_window_actor_visible (window, (window_actor) => {
33+
track_window (window_actor.meta_window);
34+
});
35+
});
3236
}
3337

3438
private void on_startup_sequence_changed (Meta.StartupSequence sequence) {

0 commit comments

Comments
 (0)