Fix removal of frame decorations on Windows (Bug#38705)

* src/w32fns.c (w32_set_undecorated): Actualize
f->output_data.w32->dwStyle for subsequent calls of
AdjustWindowRect (Bug#38705).
* src/w32term.h (struct w32_output): Add comment for
dwstyle slot.
This commit is contained in:
Martin Rudalics 2020-01-02 09:35:49 +01:00
parent 338154240e
commit 01dfcb7c87
2 changed files with 7 additions and 0 deletions

View file

@ -2146,6 +2146,9 @@ w32_set_undecorated (struct frame *f, Lisp_Object new_value, Lisp_Object old_val
| SWP_FRAMECHANGED); | SWP_FRAMECHANGED);
FRAME_UNDECORATED (f) = false; FRAME_UNDECORATED (f) = false;
} }
f->output_data.w32->dwStyle = GetWindowLong (hwnd, GWL_STYLE);
unblock_input (); unblock_input ();
} }

View file

@ -371,6 +371,10 @@ struct w32_output
/* Non-hourglass cursor that is currently active. */ /* Non-hourglass cursor that is currently active. */
HCURSOR current_cursor; HCURSOR current_cursor;
/* The window style for this frame. Set up when the frame is
created and updated when adding/removing decorations in
w32_set_undecorated. Used by w32_set_window_size to adjust the
frame's window rectangle. */
DWORD dwStyle; DWORD dwStyle;
/* This is the Emacs structure for the display this frame is on. */ /* This is the Emacs structure for the display this frame is on. */