Commit 16ddd1a6 authored by Martin Rudalics's avatar Martin Rudalics

In w32fullscreen_hook really maximize frame when asked for (Bug#14841).

* w32term.c (w32fullscreen_hook): Really maximize frame when
asked for (Bug#14841).
parent d2a95ffb
2013-08-07 Martin Rudalics <rudalics@gmx.at>
* w32term.c (w32fullscreen_hook): Really maximize frame when
asked for (Bug#14841).
2013-08-07 Dmitry Antipov <dmantipov@yandex.ru>
Prefer selected_window to Fselected_window, likewise for frames.
......
......@@ -5717,7 +5717,9 @@ w32fullscreen_hook (struct frame *f)
w32_fullscreen_rect (hwnd, f->want_fullscreen,
FRAME_NORMAL_PLACEMENT (f).rcNormalPosition, &rect);
FRAME_PREV_FSMODE (f) = f->want_fullscreen;
if (f->want_fullscreen == FULLSCREEN_BOTH)
if (f->want_fullscreen == FULLSCREEN_MAXIMIZED)
PostMessage (FRAME_W32_WINDOW (f), WM_SYSCOMMAND, 0xf030, 0);
else if (f->want_fullscreen == FULLSCREEN_BOTH)
{
SetWindowLong (hwnd, GWL_STYLE, dwStyle & ~WS_OVERLAPPEDWINDOW);
SetWindowPos (hwnd, HWND_TOP, rect.left, rect.top,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment