summaryrefslogtreecommitdiffstats
path: root/sesman/scp_v0.c
diff options
context:
space:
mode:
authorLaxmikant Rashinkar <LK.Rashinkar@gmail.com>2014-03-08 16:41:37 -0800
committerLaxmikant Rashinkar <LK.Rashinkar@gmail.com>2014-03-08 16:41:37 -0800
commit883650700fcd9e0bb90de5c307e7e4e845725312 (patch)
tree655e1121772e2f01b4e052e7282ce50f3b70d85c /sesman/scp_v0.c
parent4f83a979eba76f90da33d2936ac15be744b57ef8 (diff)
downloadxrdp-proprietary-883650700fcd9e0bb90de5c307e7e4e845725312.tar.gz
xrdp-proprietary-883650700fcd9e0bb90de5c307e7e4e845725312.zip
added support for using Xorg driver model
Diffstat (limited to 'sesman/scp_v0.c')
-rw-r--r--sesman/scp_v0.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/sesman/scp_v0.c b/sesman/scp_v0.c
index aeaa22ee..cf5aa047 100644
--- a/sesman/scp_v0.c
+++ b/sesman/scp_v0.c
@@ -122,12 +122,21 @@ scp_v0_process(struct SCP_CONNECTION *c, struct SCP_SESSION *s)
s->domain, s->program, s->directory,
s->client_ip);
}
- else
+ else if (SCP_SESSION_TYPE_XRDP == s->type)
{
log_message(LOG_LEVEL_INFO, "starting X11rdp session...");
display = session_start(s->width, s->height, s->bpp, s->username,
s->password, data, SESMAN_SESSION_TYPE_XRDP,
s->domain, s->program, s->directory,
+ s->client_ip);
+ }
+ else
+ {
+ /* type is SCP_SESSION_TYPE_XORG */
+ log_message(LOG_LEVEL_INFO, "starting XOrg session...");
+ display = session_start(s->width, s->height, s->bpp, s->username,
+ s->password, data, SESMAN_SESSION_TYPE_XORG,
+ s->domain, s->program, s->directory,
s->client_ip);
}
}