From 7de779cc068b7fdc10a7ab80aca0569c8ff70a80 Mon Sep 17 00:00:00 2001 From: Leo Date: Tue, 2 Jan 2024 06:01:18 +0900 Subject: [PATCH] Show notifications on the left in RTL languages (#1812) --- src/NotificationStack.vala | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/NotificationStack.vala b/src/NotificationStack.vala index 18d2df02..39ff45d2 100644 --- a/src/NotificationStack.vala +++ b/src/NotificationStack.vala @@ -95,6 +95,9 @@ public class Gala.NotificationStack : Object { update_positions (animate, scale, window_rect.height); int notification_x_pos = area.x + area.width - window_rect.width; + if (Clutter.get_default_text_direction () == Clutter.TextDirection.RTL) { + notification_x_pos = 0; + } move_window (notification, notification_x_pos, stack_y + TOP_OFFSET + InternalUtils.scale_to_int (ADDITIONAL_MARGIN, scale)); notifications.insert (0, notification);