From dfe5911b5552fb9faaf94e998b019727a32ca21d Mon Sep 17 00:00:00 2001 From: Jim Grandy Date: Sun, 30 Jun 2013 12:36:01 -0700 Subject: Hand-apply patches (rail improvements) from Authentic8 branch: 507694d, 0e21d45, 44447d5, e452e4f, 3d05576, dd69d8f --- xup/xup.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'xup/xup.c') diff --git a/xup/xup.c b/xup/xup.c index 5320a3c9..9fdfef71 100644 --- a/xup/xup.c +++ b/xup/xup.c @@ -473,6 +473,25 @@ process_server_window_new_update(struct mod *mod, struct stream *s) return rv; } +/******************************************************************************/ +/* 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 @@ -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; -- cgit v1.2.1