[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-27 01dfcb7: Fix removal of frame decorations on Windows (Bug#38705
From: |
Martin Rudalics |
Subject: |
emacs-27 01dfcb7: Fix removal of frame decorations on Windows (Bug#38705) |
Date: |
Thu, 2 Jan 2020 03:37:05 -0500 (EST) |
branch: emacs-27
commit 01dfcb7c879831b5cf2614e35f9f610dfadb13a0
Author: Martin Rudalics <address@hidden>
Commit: Martin Rudalics <address@hidden>
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.
---
src/w32fns.c | 3 +++
src/w32term.h | 4 ++++
2 files changed, 7 insertions(+)
diff --git a/src/w32fns.c b/src/w32fns.c
index 75e0d53..61e22e5 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 ();
}
diff --git a/src/w32term.h b/src/w32term.h
index 5a54f54..737764b 100644
--- a/src/w32term.h
+++ b/src/w32term.h
@@ -371,6 +371,10 @@ struct w32_output
/* Non-hourglass cursor that is currently active. */
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;
/* This is the Emacs structure for the display this frame is on. */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-27 01dfcb7: Fix removal of frame decorations on Windows (Bug#38705),
Martin Rudalics <=