NotificationDaemon: fix fallout from db75734774
The public API of ShellAppSystem was changed, now both the desktop and startup wmclass must be looked up. https://bugzilla.gnome.org/show_bug.cgi?id=705801
This commit is contained in:
parent
cba5bca842
commit
114d32a28f
@ -734,7 +734,11 @@ const Source = new Lang.Class({
|
|||||||
return app;
|
return app;
|
||||||
|
|
||||||
if (this.trayIcon) {
|
if (this.trayIcon) {
|
||||||
app = Shell.AppSystem.get_default().lookup_wmclass(this.trayIcon.wm_class);
|
app = Shell.AppSystem.get_default().lookup_startup_wmclass(this.trayIcon.wm_class);
|
||||||
|
if (app != null)
|
||||||
|
return app;
|
||||||
|
|
||||||
|
app = Shell.AppSystem.get_default().lookup_desktop_wmclass(this.trayIcon.wm_class);
|
||||||
if (app != null)
|
if (app != null)
|
||||||
return app;
|
return app;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user