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 ebba18d commit e10f81dCopy full SHA for e10f81d
src/WindowActorFetcher.vala
@@ -12,20 +12,30 @@ public class Gala.WindowActorFetcher : GLib.Object {
12
13
public Meta.Window window { get; construct; }
14
15
+ private uint idle_id = 0;
16
+
17
public WindowActorFetcher (Meta.Window window) {
18
Object (window: window);
19
}
20
21
+ ~WindowActorFetcher () {
22
+ if (idle_id > 0) {
23
+ Source.remove (idle_id);
24
+ }
25
26
27
construct {
- Idle.add (() => {
28
+ idle_id = Idle.add (() => {
29
if (window == null) {
30
+ idle_id = 0;
31
return Source.REMOVE;
32
33
34
unowned var window_actor = (Meta.WindowActor) window.get_compositor_private ();
35
36
if (window_actor != null) {
37
window_actor_ready ();
38
39
40
41
0 commit comments