+2013-03-13 Eli Zaretskii <eliz@gnu.org>
+
+ * w32term.c (w32_read_socket): If we Emacs frame is being
+ activated, call w32fullscreen_hook, to make sure the new frame
+ dimensions are in effect. (Bug#13937)
+
2013-03-13 Dmitry Antipov <dmantipov@yandex.ru>
* xdisp.c (init_iterator): Simplify because both character and byte
#endif
static void my_set_foreground_window (HWND);
static void my_destroy_window (struct frame *, HWND);
+static void w32fullscreen_hook (FRAME_PTR);
#ifdef GLYPH_DEBUG
static void x_check_font (struct frame *, struct font *);
case WM_ACTIVATEAPP:
f = x_window_to_frame (dpyinfo, msg.msg.hwnd);
if (f)
- x_check_fullscreen (f);
+ {
+ /* If we are being activated, run the full-screen hook
+ function, to actually install the required size in
+ effect. This is because when the hook is run from
+ x_set_fullscreen, the frame might not yet be visible,
+ if that call is a result of make-frame. */
+ if (msg.msg.wParam)
+ w32fullscreen_hook (f);
+ x_check_fullscreen (f);
+ }
check_visibility = 1;
break;