We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8928954 commit 20eef78Copy full SHA for 20eef78
lib/WindowIcon.vala
@@ -29,6 +29,19 @@ public class Gala.WindowIcon : Clutter.Actor {
29
}
30
31
construct {
32
+ /**
33
+ * Sometimes a WindowIcon is constructed on Meta.Display::window_created.
34
+ * In this case it can happen that we don't have any info about the app yet so we can't get the
35
+ * correct icon. Therefore we check whether the info becomes available at some point
36
+ * and if it does we try to get a new icon.
37
+ */
38
+ window.notify["wm-class"].connect (reload_icon);
39
+ window.notify["gtk-application-id"].connect (reload_icon);
40
+
41
+ reload_icon ();
42
+ }
43
44
+ private void reload_icon () {
45
width = icon_size * scale;
46
height = icon_size * scale;
47
0 commit comments