[gnome-shell] windowManager: Use Clutter default text direction



commit 48ae38c52db4ccd7ad2a4e36f3a0ceb926739abd
Author: Abderrahim Kitouni <akitouni gnome org>
Date:   Fri Feb 26 18:08:01 2021 +0100

    windowManager: Use Clutter default text direction
    
    This code was copied from workspacesView which used the widget's text
    direction, but it is no longer in a widget
    
    Fixes #3780
    
    Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1724>

 js/ui/windowManager.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/js/ui/windowManager.js b/js/ui/windowManager.js
index dfc0aada00..93777db22e 100644
--- a/js/ui/windowManager.js
+++ b/js/ui/windowManager.js
@@ -1875,7 +1875,7 @@ var WindowManager = class {
 
         const workspaceManager = global.workspace_manager;
         const vertical = workspaceManager.layout_rows === -1;
-        const rtl = this.text_direction === Clutter.TextDirection.RTL;
+        const rtl = Clutter.get_default_text_direction() === Clutter.TextDirection.RTL;
         const activeWs = workspaceManager.get_active_workspace();
         let ws;
         switch (direction) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]