diff options
author | Jay Sorg <jay.sorg@gmail.com> | 2011-08-23 19:27:12 -0700 |
---|---|---|
committer | Jay Sorg <jay.sorg@gmail.com> | 2011-08-23 19:27:12 -0700 |
commit | 4c603d985535b44d1a6806fe32e39326fd09d906 (patch) | |
tree | fd8c421f3ba160bbd77088150eec8d5cc7006b59 /sesman | |
parent | ed7638f0e1faaea5f35da8d8f20048dc1b5ce2a5 (diff) | |
download | xrdp-proprietary-4c603d985535b44d1a6806fe32e39326fd09d906.tar.gz xrdp-proprietary-4c603d985535b44d1a6806fe32e39326fd09d906.zip |
X11rdp can resize sessions now
Diffstat (limited to 'sesman')
-rw-r--r-- | sesman/session.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sesman/session.c b/sesman/session.c index 36262ad6..8292482c 100644 --- a/sesman/session.c +++ b/sesman/session.c @@ -77,6 +77,17 @@ session_get_bydata(char* name, int width, int height, int bpp, int type) while (tmp != 0) { + if (type == SESMAN_SESSION_TYPE_XRDP) + { + /* only name need to match for X11rdp, it can resize */ + if (g_strncmp(name, tmp->item->name, 255) == 0 && + tmp->item->type == type) + { + /*THREAD-FIX release chain lock */ + lock_chain_release(); + return tmp->item; + } + } if (g_strncmp(name, tmp->item->name, 255) == 0 && tmp->item->width == width && tmp->item->height == height && |