aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJuanma Barranquero2006-12-14 23:39:06 +0000
committerJuanma Barranquero2006-12-14 23:39:06 +0000
commit8a4c4c7fdc1745631b2ff8c184eb6eed04ba026b (patch)
treee74e55222a926105c8a9d28cd999528d15a1f63e /src
parent0aaf5bb060eb06de80dd1f96e8cecdaebb19368b (diff)
downloademacs-8a4c4c7fdc1745631b2ff8c184eb6eed04ba026b.tar.gz
emacs-8a4c4c7fdc1745631b2ff8c184eb6eed04ba026b.zip
(w32_wnd_proc): Force non-tooltip frames to respect the minimum tracking size.
Remove non-working old hack to do the same.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/w32fns.c10
2 files changed, 10 insertions, 5 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 77a714e0917..36f9d88f9f4 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12006-12-14 Juanma Barranquero <lekktu@gmail.com>
2
3 * w32fns.c (w32_wnd_proc): Force non-tooltip frames to respect the
4 minimum tracking size. Remove non-working old hack to do the same.
5
12006-12-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 62006-12-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2 7
3 * emacs.c (handle_user_signal): Move function to keyboard.c. 8 * emacs.c (handle_user_signal): Move function to keyboard.c.
diff --git a/src/w32fns.c b/src/w32fns.c
index 6313afe7867..96fa9375ee8 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -3706,8 +3706,11 @@ w32_wnd_proc (hwnd, msg, wParam, lParam)
3706 However for top/left sizing we will need to fix the X 3706 However for top/left sizing we will need to fix the X
3707 and Y positions as well. */ 3707 and Y positions as well. */
3708 3708
3709 lppos->cx -= wdiff; 3709 int cx_mintrack = GetSystemMetrics (SM_CXMINTRACK);
3710 lppos->cy -= hdiff; 3710 int cy_mintrack = GetSystemMetrics (SM_CYMINTRACK);
3711
3712 lppos->cx = max (lppos->cx - wdiff, cx_mintrack);
3713 lppos->cy = max (lppos->cy - hdiff, cy_mintrack);
3711 3714
3712 if (wp.showCmd != SW_SHOWMAXIMIZED 3715 if (wp.showCmd != SW_SHOWMAXIMIZED
3713 && (lppos->flags & SWP_NOMOVE) == 0) 3716 && (lppos->flags & SWP_NOMOVE) == 0)
@@ -3731,9 +3734,6 @@ w32_wnd_proc (hwnd, msg, wParam, lParam)
3731 goto dflt; 3734 goto dflt;
3732 3735
3733 case WM_GETMINMAXINFO: 3736 case WM_GETMINMAXINFO:
3734 /* Hack to correct bug that allows Emacs frames to be resized
3735 below the Minimum Tracking Size. */
3736 ((LPMINMAXINFO) lParam)->ptMinTrackSize.y++;
3737 /* Hack to allow resizing the Emacs frame above the screen size. 3737 /* Hack to allow resizing the Emacs frame above the screen size.
3738 Note that Windows 9x limits coordinates to 16-bits. */ 3738 Note that Windows 9x limits coordinates to 16-bits. */
3739 ((LPMINMAXINFO) lParam)->ptMaxTrackSize.x = 32767; 3739 ((LPMINMAXINFO) lParam)->ptMaxTrackSize.x = 32767;