From 0f5449c1fc102c4f8582da5e49752cb0bc3a05b7 Mon Sep 17 00:00:00 2001 From: Geoff Voelker Date: Sun, 21 Jan 1996 00:57:52 +0000 Subject: [PATCH] (x_make_frame_visible): Explicitly make the frame the selected frame. --- src/w32term.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/w32term.c b/src/w32term.c index bdb764feb8d..e3afeb97094 100644 --- a/src/w32term.c +++ b/src/w32term.c @@ -3287,11 +3287,13 @@ x_make_frame_visible (f) if we get to x_make_frame_visible a second time before the window gets really visible. */ if (! FRAME_ICONIFIED_P (f) - && ! f->output_data.win32->asked_for_visible) - x_set_offset (f, f->output_data.win32->left_pos, f->output_data.win32->top_pos, 0); + && ! f->output_data.win32->asked_for_visible) { + x_set_offset (f, f->output_data.win32->left_pos, + f->output_data.win32->top_pos, 0); + SetForegroundWindow (FRAME_WIN32_WINDOW (f)); + } f->output_data.win32->asked_for_visible = 1; - ShowWindow (FRAME_WIN32_WINDOW (f), SW_SHOW); } -- 2.39.2