From 48ae38c52db4ccd7ad2a4e36f3a0ceb926739abd Mon Sep 17 00:00:00 2001 From: Abderrahim Kitouni Date: Fri, 26 Feb 2021 18:08:01 +0100 Subject: [PATCH] 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: --- 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 dfc0aada0..93777db22 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) {