summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Sekletar <msekleta@redhat.com>2016-01-15 15:29:46 +0100
committerEric Koegel <eric.koegel@gmail.com>2016-03-19 18:15:08 +0300
commit416aa734c28555da90109ada78e11f24d8da599b (patch)
tree96f84b681cade18653b77b0fbd49db63eefce7c9
parent7f277e8dadc3c33f02816e439cec031982617837 (diff)
downloadConsoleKit2-416aa734c28555da90109ada78e11f24d8da599b.tar.gz
When assigning session to active VT prefer graphical sessions
I case when we launch graphical session on top of text session on the same VT we want to mark newly created graphical session as active.
-rw-r--r--src/ck-seat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ck-seat.c b/src/ck-seat.c
index 47e6933..1f65a3c 100644
--- a/src/ck-seat.c
+++ b/src/ck-seat.c
@@ -536,9 +536,9 @@ find_session_for_display_device (CkSeat *seat,
GList *sessions;
CkSession *session;
- sessions = find_sessions_for_display_device (seat, device);
+ sessions = find_sessions_for_x11_display_device (seat, device);
if (sessions == NULL) {
- sessions = find_sessions_for_x11_display_device (seat, device);
+ sessions = find_sessions_for_display_device (seat, device);
}
if (sessions == NULL) {