summaryrefslogtreecommitdiffstats
path: root/xup/xup.c
diff options
context:
space:
mode:
authorJim Grandy <jgrandy@authentic8.com>2013-06-30 12:36:01 -0700
committerJim Grandy <jgrandy@authentic8.com>2013-08-22 12:49:40 -0700
commitdfe5911b5552fb9faaf94e998b019727a32ca21d (patch)
tree2afa7b431fda83ad7a5f665a5162245648c8db6d /xup/xup.c
parentb8388a65a2d561c23cc08613d1c4d7cf5dbb96d0 (diff)
downloadxrdp-proprietary-dfe5911b5552fb9faaf94e998b019727a32ca21d.tar.gz
xrdp-proprietary-dfe5911b5552fb9faaf94e998b019727a32ca21d.zip
Hand-apply patches (rail improvements) from Authentic8 branch: 507694d, 0e21d45, 44447d5, e452e4f, 3d05576, dd69d8f
Diffstat (limited to 'xup/xup.c')
-rw-r--r--xup/xup.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/xup/xup.c b/xup/xup.c
index 5320a3c9..9fdfef71 100644
--- a/xup/xup.c
+++ b/xup/xup.c
@@ -476,6 +476,25 @@ process_server_window_new_update(struct mod *mod, struct stream *s)
/******************************************************************************/
/* return error */
static int APP_CC
+process_server_window_show(struct mod* mod, struct stream* s)
+{
+ int window_id;
+ int rv;
+ int flags;
+ struct rail_window_state_order rwso;
+
+ g_memset(&rwso, 0, sizeof(rwso));
+ in_uint32_le(s, window_id);
+ in_uint32_le(s, flags);
+ in_uint32_le(s, rwso.show_state);
+ mod->server_window_new_update(mod, window_id, &rwso, flags);
+ rv = 0;
+ return rv;
+}
+
+/******************************************************************************/
+/* return error */
+static int APP_CC
process_server_window_delete(struct mod *mod, struct stream *s)
{
int window_id;
@@ -658,6 +677,9 @@ lib_mod_process_orders(struct mod *mod, int type, struct stream *s)
case 26: /* server_window_delete */
rv = process_server_window_delete(mod, s);
break;
+ case 27: /* server_window_new_update - show */
+ rv = process_server_window_show(mod, s);
+ break;
case 51: /* server_set_pointer_ex */
rv = process_server_set_pointer_ex(mod, s);
break;