diff options
Diffstat (limited to 'sesman/session.c')
-rw-r--r-- | sesman/session.c | 4 |
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)) { |