fix bug with none x windows session then lock
Merge branch 'fix_bug'