summaryrefslogtreecommitdiffstats
path: root/sesman/session.c
diff options
context:
space:
mode:
authorjsorg71 <jsorg71>2010-04-24 06:41:55 +0000
committerjsorg71 <jsorg71>2010-04-24 06:41:55 +0000
commite83b4c43f55ee3fcabf71dbf18a39e856d45e675 (patch)
tree23b5ff4368e74861bff2d0acba476c6bf9001639 /sesman/session.c
parentf312c16a8a2a19179eedcf7166e09e5b6ae764cf (diff)
downloadxrdp-proprietary-e83b4c43f55ee3fcabf71dbf18a39e856d45e675.tar.gz
xrdp-proprietary-e83b4c43f55ee3fcabf71dbf18a39e856d45e675.zip
added X11DisplayOffset sesman option
Diffstat (limited to 'sesman/session.c')
-rw-r--r--sesman/session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sesman/session.c b/sesman/session.c
index 1d487424..6edee0fd 100644
--- a/sesman/session.c
+++ b/sesman/session.c
@@ -252,9 +252,9 @@ session_get_aval_display_from_chain(void)
{
int display;
- display = 10;
+ display = g_cfg->sess.x11_display_offset;
lock_chain_acquire();
- while ((display - 10) <= g_cfg->sess.max_sessions)
+ while ((display - g_cfg->sess.x11_display_offset) <= g_cfg->sess.max_sessions)
{
if (!session_is_display_in_chain(display))
{