diff options
-rw-r--r-- | src/display.c | 10 | ||||
-rw-r--r-- | src/display.h | 2 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/display.c b/src/display.c index 5ba1ebe6..deab9f40 100644 --- a/src/display.c +++ b/src/display.c @@ -40,6 +40,9 @@ struct DisplayPrivate /* Display server */ DisplayServer *display_server; + /* TRUE if the session can run on the same display server as the greeter */ + gboolean share_display_server; + /* Greeter session */ gchar *greeter_session; @@ -130,6 +133,13 @@ display_get_display_server (Display *display) return display->priv->display_server; } +void +display_set_share_display_server (Display *display, gboolean share_display_server) +{ + g_return_if_fail (display != NULL); + display->priv->share_display_server = share_display_server; +} + const gchar * display_get_username (Display *display) { diff --git a/src/display.h b/src/display.h index a1a45bcf..c5ee9cd1 100644 --- a/src/display.h +++ b/src/display.h @@ -54,6 +54,8 @@ Display *display_new (DisplayServer *display_server); DisplayServer *display_get_display_server (Display *display); +void display_set_share_display_server (Display *display, gboolean share_display_server); + const gchar *display_get_username (Display *display); Session *display_get_session (Display *display); |