[gnome-shell-extensions] window-list: Check if the window title is set
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell-extensions] window-list: Check if the window title is set
- Date: Tue, 24 Feb 2015 20:09:14 +0000 (UTC)
commit c0170ff9456df798feaeec176dddd8a7580a221b
Author: Rui Matos <tiagomatos gmail com>
Date: Tue Feb 24 20:47:15 2015 +0100
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 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/extensions/window-list/extension.js b/extensions/window-list/extension.js
index 5c44272..f2b9811 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]