aboutsummaryrefslogtreecommitdiffstats
path: root/src/frame.c
diff options
context:
space:
mode:
authorEli Zaretskii2013-03-23 11:01:14 +0200
committerEli Zaretskii2013-03-23 11:01:14 +0200
commitb5b7745f1fde7cdd5fb76113a56b9d3c39ffffc8 (patch)
treec54c3dd4f4d5fe325d2d3b9b2d8829f6f14d4441 /src/frame.c
parent7e74b0fb885b1283e8052db5012a61dab85a7b9a (diff)
downloademacs-b5b7745f1fde7cdd5fb76113a56b9d3c39ffffc8.tar.gz
emacs-b5b7745f1fde7cdd5fb76113a56b9d3c39ffffc8.zip
Fix bug #14032 with restoring frame dimensions on MS-Windows.
src/w32term.c (w32fullscreen_hook): Record last value of the frame's 'fullscreen' parameter. Always record previous width and height of the frame, except when switching out of maximized modes, so that they could be restored correctly, instead of resetting to the default frame dimensions. Send SC_RESTORE command to the frame, unless we are going to send SC_MAXIMIZE, to restore the frame resize hints in the mouse pointer shown by the window manager. src/frame.c (get_frame_param): Now extern for WINDOWSNT as well. src/lisp.h (get_frame_param): Adjust conditions for prototype declaration.
Diffstat (limited to 'src/frame.c')
-rw-r--r--src/frame.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/frame.c b/src/frame.c
index 2ed2c5a2771..615b31c978d 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -1819,7 +1819,7 @@ See `redirect-frame-focus'. */)
1819/* Return the value of frame parameter PROP in frame FRAME. */ 1819/* Return the value of frame parameter PROP in frame FRAME. */
1820 1820
1821#ifdef HAVE_WINDOW_SYSTEM 1821#ifdef HAVE_WINDOW_SYSTEM
1822#if !HAVE_NS 1822#if !HAVE_NS && !defined(WINDOWSNT)
1823static 1823static
1824#endif 1824#endif
1825Lisp_Object 1825Lisp_Object