Skip to content

Commit

Permalink
Show notifications on the left in RTL languages
Browse files Browse the repository at this point in the history
  • Loading branch information
lenemter committed Dec 24, 2023
1 parent fa8ebfd commit d23ee7a
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 d23ee7a

Please sign in to comment.