Skip to content

Commit

Permalink
Show notifications on the left in RTL languages (#1812)
Browse files Browse the repository at this point in the history
  • Loading branch information
lenemter authored Jan 1, 2024
1 parent fe1918d commit 7de779c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/NotificationStack.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7de779c

Please sign in to comment.