convert_to_key_event (&msg, keyp);
add = key_event (keyp, bufp);
+ XSETFRAME (bufp->frame_or_window, f);
if (add == -1)
{
/* The key pressed generated two characters, most likely
{
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;
GetMessage (&msg, NULL, WM_EMACS_DONE, WM_EMACS_DONE);
}
- /* AttachThreadInput (dwWinThreadId, dwMainThreadId, TRUE); */
+ AttachThreadInput (dwMainThreadId, dwWinThreadId, TRUE);
}