[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Minimum frame size in Windows
From: |
Juanma Barranquero |
Subject: |
Minimum frame size in Windows |
Date: |
Tue, 12 Dec 2006 17:36:07 +0100 |
There's an old hack in src/w32fns.c to avoid the user resizing an
Emacs frame below the minimum tracking size (else the user can, for
example, make a window showing only a fraction of the window caption,
which looks ugly).
However, the hack is not working. I propose fixing it with the
following straightforward patch.
/L/e/k/t/u
Index: src/w32fns.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/w32fns.c,v
retrieving revision 1.281
diff -u -2 -r1.281 w32fns.c
--- src/w32fns.c 1 Dec 2006 13:04:59 -0000 1.281
+++ src/w32fns.c 12 Dec 2006 16:18:44 -0000
@@ -3707,6 +3707,6 @@
and Y positions as well. */
- lppos->cx -= wdiff;
- lppos->cy -= hdiff;
+ lppos->cx = max (lppos->cx - wdiff, GetSystemMetrics
(SM_CXMINTRACK));
+ lppos->cy = max (lppos->cy - hdiff, GetSystemMetrics
(SM_CYMINTRACK));
if (wp.showCmd != SW_SHOWMAXIMIZED
@@ -3732,7 +3732,4 @@
case WM_GETMINMAXINFO:
- /* Hack to correct bug that allows Emacs frames to be resized
- below the Minimum Tracking Size. */
- ((LPMINMAXINFO) lParam)->ptMinTrackSize.y++;
/* Hack to allow resizing the Emacs frame above the screen size.
Note that Windows 9x limits coordinates to 16-bits. */
- Minimum frame size in Windows,
Juanma Barranquero <=
- RE: Minimum frame size in Windows, Drew Adams, 2006/12/12
- Re: Minimum frame size in Windows, Lennart Borgman, 2006/12/12
- Re: Minimum frame size in Windows, Juanma Barranquero, 2006/12/12
- RE: Minimum frame size in Windows, Drew Adams, 2006/12/12
- Re: Minimum frame size in Windows, Juanma Barranquero, 2006/12/12
- RE: Minimum frame size in Windows, Drew Adams, 2006/12/12
- Re: Minimum frame size in Windows, Juanma Barranquero, 2006/12/12
- Re: Minimum frame size in Windows, Juanma Barranquero, 2006/12/12
- RE: Minimum frame size in Windows, Drew Adams, 2006/12/12
- Re: Minimum frame size in Windows, Juanma Barranquero, 2006/12/12