From 959be9d2a2ef6f4f34dca19df007f30b7d5e8d45 Mon Sep 17 00:00:00 2001 From: jsorg71 Date: Sat, 26 Mar 2005 06:53:08 +0000 Subject: [PATCH] close connection window if connected --- xrdp/xrdp_login_wnd.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/xrdp/xrdp_login_wnd.c b/xrdp/xrdp_login_wnd.c index fe9e36fb..9cf14071 100644 --- a/xrdp/xrdp_login_wnd.c +++ b/xrdp/xrdp_login_wnd.c @@ -264,7 +264,13 @@ int xrdp_wm_login_notify(struct xrdp_bitmap* wnd, wm->mod_handle = 0; wm->mod_init = 0; wm->mod_exit = 0; - //wm->pro_layer->app_sck = 0; + } + else /* close connection log window if connection is ok */ + { + if (wm->log_wnd != 0) + { + xrdp_bitmap_delete(wm->log_wnd); + } } } if (!wm->pro_layer->term)