From c0170ff9456df798feaeec176dddd8a7580a221b Mon Sep 17 00:00:00 2001 From: Rui Matos Date: Tue, 24 Feb 2015 20:47:15 +0100 Subject: [PATCH] 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 --- extensions/window-list/extension.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/extensions/window-list/extension.js b/extensions/window-list/extension.js index 5c44272f..f2b9811e 100644 --- a/extensions/window-list/extension.js +++ b/extensions/window-list/extension.js @@ -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