diff --git a/js/ui/viewSelector.js b/js/ui/viewSelector.js index 57395e38c..c2ef9e569 100644 --- a/js/ui/viewSelector.js +++ b/js/ui/viewSelector.js @@ -214,10 +214,13 @@ const ViewSelector = new Lang.Class({ Shell.KeyBindingMode.OVERVIEW, Lang.bind(Main.overview, Main.overview.toggle)); - let gesture; - - gesture = new EdgeDragAction.EdgeDragAction(St.Side.LEFT, - Shell.KeyBindingMode.NORMAL); + let side; + if (Clutter.get_default_text_direction() == Clutter.TextDirection.RTL) + side = St.Side.RIGHT; + else + side = St.Side.LEFT; + let gesture = new EdgeDragAction.EdgeDragAction(side, + Shell.KeyBindingMode.NORMAL); gesture.connect('activated', Lang.bind(this, function() { if (Main.overview.visible) Main.overview.hide();