diff options
author | Robert Ancell <robert.ancell@canonical.com> | 2013-07-23 14:10:40 +1200 |
---|---|---|
committer | Robert Ancell <robert.ancell@canonical.com> | 2013-07-23 14:10:40 +1200 |
commit | 3e1d6047758cfc510033e775a35db8b70cf5c4fe (patch) | |
tree | 362af4eb01955885ad654b3ba4e4704e069c0869 /src/seat-xremote.c | |
parent | c679404406cf4e073058e8a1964cde4b7e5054d6 (diff) | |
download | lightdm-3e1d6047758cfc510033e775a35db8b70cf5c4fe.tar.gz |
Half baked code before merge with trunk
Diffstat (limited to 'src/seat-xremote.c')
-rw-r--r-- | src/seat-xremote.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/seat-xremote.c b/src/seat-xremote.c index 888ea122..462e7532 100644 --- a/src/seat-xremote.c +++ b/src/seat-xremote.c @@ -26,12 +26,18 @@ seat_xremote_setup (Seat *seat) } static DisplayServer * -seat_xremote_create_display_server (Seat *seat) +seat_xremote_create_display_server (Seat *seat, const gchar *session_type) { XServerRemote *xserver; const gchar *hostname; gint number; + if (strcmp (session_type, "x") != 0) + { + g_warning ("X remote seat only supports X display servers, not '%s'", session_type); + return NULL; + } + hostname = seat_get_string_property (seat, "xserver-hostname"); if (!hostname) hostname = "localhost"; |