[gnome-shell-extensions] window-list: Force single-line window titles
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell-extensions] window-list: Force single-line window titles
- Date: Fri, 17 Jan 2020 14:10:32 +0000 (UTC)
commit c958e2d0fd97c581b8eeb2c8d9877d6fa7578c0a
Author: Florian Müllner <fmuellner gnome org>
Date: Fri Jan 17 15:03:54 2020 +0100
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 5456a47..2c9dcf4 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();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]