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>
This commit is contained in:
Abderrahim Kitouni 2021-02-26 18:08:01 +01:00
parent 175175fac8
commit 48ae38c52d

View File

@ -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) {