From d0c9b7ccd1d425787e50b9c4842f1a821883272c Mon Sep 17 00:00:00 2001 From: ShadowLarkens Date: Mon, 3 Aug 2020 20:50:02 -0700 Subject: [PATCH] Fixed TGUI Not refocusing mapwindow --- code/modules/tgui/tgui_window.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/modules/tgui/tgui_window.dm b/code/modules/tgui/tgui_window.dm index 18cf715368..26533447d4 100644 --- a/code/modules/tgui/tgui_window.dm +++ b/code/modules/tgui/tgui_window.dm @@ -140,6 +140,7 @@ log_tgui(client, "[id]/close: suspending") status = TGUI_WINDOW_READY send_message("suspend") + winset(client, null, "mapwindow.map.focus=true") return log_tgui(client, "[id]/close") release_lock() @@ -149,7 +150,7 @@ // to read the error message. if(!fatally_errored) client << browse(null, "window=[id]") - + winset(client, null, "mapwindow.map.focus=true") /** * public *