window-list: Check if the window title is set

MetaWindow.title might be NULL, particularly for Wayland clients where
setting the title is a request separate from window creation. We
shouldn't try to set StLabel's text prop in that case.

https://bugzilla.gnome.org/show_bug.cgi?id=745064
This commit is contained in:
Rui Matos
2015-02-24 20:47:15 +01:00
parent 59060067fb
commit c0170ff945

View File

@@ -169,6 +169,9 @@ const WindowTitle = new Lang.Class({
},
_updateTitle: function() {
if (!this._metaWindow.title)
return;
if (this._metaWindow.minimized)
this._label.text = '[%s]'.format(this._metaWindow.title);
else