From c958e2d0fd97c581b8eeb2c8d9877d6fa7578c0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Fri, 17 Jan 2020 15:03:54 +0100 Subject: [PATCH] window-list: Force single-line window titles While window titles really really shouldn't contain newline characters, they are under application control and therefore may very well do. Force the corresponding labels to be single line, to prevent offending applications from messing up the whole window list layout. https://gitlab.gnome.org/GNOME/gnome-shell-extensions/issues/202 --- extensions/window-list/extension.js | 1 + 1 file changed, 1 insertion(+) diff --git a/extensions/window-list/extension.js b/extensions/window-list/extension.js index 5456a470..2c9dcf4a 100644 --- a/extensions/window-list/extension.js +++ b/extensions/window-list/extension.js @@ -146,6 +146,7 @@ class WindowTitle extends St.BoxLayout { this._icon = new St.Bin({ style_class: 'window-button-icon' }); this.add(this._icon); this.label_actor = new St.Label({ y_align: Clutter.ActorAlign.CENTER }); + this.label_actor.clutter_text.single_line_mode = true; this.add(this.label_actor); this._textureCache = St.TextureCache.get_default();