diff options
| author | Martin Rudalics | 2020-01-02 09:35:49 +0100 |
|---|---|---|
| committer | Martin Rudalics | 2020-01-02 09:35:49 +0100 |
| commit | 01dfcb7c879831b5cf2614e35f9f610dfadb13a0 (patch) | |
| tree | 5e59fd8163e3d378713ae88f159ec699ca6d06ac /src | |
| parent | 338154240e05a06a9fedb806940ef671868b4722 (diff) | |
| download | emacs-01dfcb7c879831b5cf2614e35f9f610dfadb13a0.tar.gz emacs-01dfcb7c879831b5cf2614e35f9f610dfadb13a0.zip | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32fns.c | 3 | ||||
| -rw-r--r-- | src/w32term.h | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/w32fns.c b/src/w32fns.c index 75e0d531a23..61e22e57009 100644 --- a/src/w32fns.c +++ b/src/w32fns.c | |||
| @@ -2146,6 +2146,9 @@ w32_set_undecorated (struct frame *f, Lisp_Object new_value, Lisp_Object old_val | |||
| 2146 | | SWP_FRAMECHANGED); | 2146 | | SWP_FRAMECHANGED); |
| 2147 | FRAME_UNDECORATED (f) = false; | 2147 | FRAME_UNDECORATED (f) = false; |
| 2148 | } | 2148 | } |
| 2149 | |||
| 2150 | f->output_data.w32->dwStyle = GetWindowLong (hwnd, GWL_STYLE); | ||
| 2151 | |||
| 2149 | unblock_input (); | 2152 | unblock_input (); |
| 2150 | } | 2153 | } |
| 2151 | 2154 | ||
diff --git a/src/w32term.h b/src/w32term.h index 5a54f542365..737764b8942 100644 --- a/src/w32term.h +++ b/src/w32term.h | |||
| @@ -371,6 +371,10 @@ struct w32_output | |||
| 371 | /* Non-hourglass cursor that is currently active. */ | 371 | /* Non-hourglass cursor that is currently active. */ |
| 372 | HCURSOR current_cursor; | 372 | HCURSOR current_cursor; |
| 373 | 373 | ||
| 374 | /* The window style for this frame. Set up when the frame is | ||
| 375 | created and updated when adding/removing decorations in | ||
| 376 | w32_set_undecorated. Used by w32_set_window_size to adjust the | ||
| 377 | frame's window rectangle. */ | ||
| 374 | DWORD dwStyle; | 378 | DWORD dwStyle; |
| 375 | 379 | ||
| 376 | /* This is the Emacs structure for the display this frame is on. */ | 380 | /* This is the Emacs structure for the display this frame is on. */ |