summaryrefslogtreecommitdiff
path: root/mdm/src/mdm-start-seat
diff options
context:
space:
mode:
Diffstat (limited to 'mdm/src/mdm-start-seat')
-rwxr-xr-xmdm/src/mdm-start-seat2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdm/src/mdm-start-seat b/mdm/src/mdm-start-seat
index e7a9f1b..a1968d2 100755
--- a/mdm/src/mdm-start-seat
+++ b/mdm/src/mdm-start-seat
@@ -247,7 +247,7 @@ KEYBOARD=
MOUSE=
SEAT_WINDOW_ID=
SCREEN_X_ORIGIN=($(grep -A4 $DISPLAY $XRANDR_INFO_FILE |
- tail -1 | cut -d'=' -f2))
+ tail -n 1 | cut -d'=' -f2))
# XXX: In case $SCREEN_X_ORIGIN has only one value, and SEAT_DISPLAY is odd,
# the open_seat_parent_window given parameter would be empty