From 5f795e34b35eb1c9374d41a784c654e6451d3670 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Fri, 15 Mar 2013 12:07:29 +0200 Subject: [PATCH] Match the effect of FULLSCREEN_BOTH and FULLSCREEN_MAXIMIZED to docs on Windows. src/w32term.c (w32fullscreen_hook): Swap FULLSCREEN_BOTH and FULLSCREEN_MAXIMIZED. Fixes: debbugs:13935 --- doc/lispref/frames.texi | 5 +++-- src/ChangeLog | 5 +++++ src/w32term.c | 4 ++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/doc/lispref/frames.texi b/doc/lispref/frames.texi index 7d56d38ffad..01d2d1d6c45 100644 --- a/doc/lispref/frames.texi +++ b/doc/lispref/frames.texi @@ -632,8 +632,9 @@ possible. The value @code{fullboth} specifies that both the width and the height shall be set to the size of the screen. The value @code{maximized} specifies that the frame shall be maximized. The difference between @code{maximized} and @code{fullboth} is that the -former still has window manager decorations while the latter really -covers the whole screen. +former can still be resized by dragging window manager decorations +with the mouse, while the latter really covers the whole screen and +does not allow resizing by mouse dragging. @end table @node Layout Parameters diff --git a/src/ChangeLog b/src/ChangeLog index ccbe9bcd24a..147139279ba 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2013-03-15 Eli Zaretskii + + * w32term.c (w32fullscreen_hook): Swap FULLSCREEN_BOTH and + FULLSCREEN_MAXIMIZED. (Bug#13935) + 2013-03-15 Dmitry Antipov * region-cache.c (find_cache_boundary, move_cache_gap) diff --git a/src/w32term.c b/src/w32term.c index 6b51777839f..989ceb0f847 100644 --- a/src/w32term.c +++ b/src/w32term.c @@ -5682,10 +5682,10 @@ w32fullscreen_hook (FRAME_PTR f) switch (f->want_fullscreen) { - case FULLSCREEN_MAXIMIZED: + case FULLSCREEN_BOTH: PostMessage (FRAME_W32_WINDOW (f), WM_SYSCOMMAND, SC_MAXIMIZE, 0); break; - case FULLSCREEN_BOTH: + case FULLSCREEN_MAXIMIZED: height = FRAME_PIXEL_HEIGHT_TO_TEXT_LINES (f, pixel_height) - XINT (Ftool_bar_lines_needed (selected_frame)) -- 2.39.2