summaryrefslogtreecommitdiff
path: root/src/w32fns.c
diff options
context:
space:
mode:
authorMartin Rudalics <rudalics@gmx.at>2020-01-02 09:35:49 +0100
committerMartin Rudalics <rudalics@gmx.at>2020-01-02 09:35:49 +0100
commit01dfcb7c879831b5cf2614e35f9f610dfadb13a0 (patch)
tree5e59fd8163e3d378713ae88f159ec699ca6d06ac /src/w32fns.c
parent338154240e05a06a9fedb806940ef671868b4722 (diff)
downloademacs-01dfcb7c879831b5cf2614e35f9f610dfadb13a0.tar.gz
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/w32fns.c')
-rw-r--r--src/w32fns.c3
1 files changed, 3 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
| SWP_FRAMECHANGED);
FRAME_UNDECORATED (f) = false;
}
+
+ f->output_data.w32->dwStyle = GetWindowLong (hwnd, GWL_STYLE);
+
unblock_input ();
}