Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
8a4c4c7f
Commit
8a4c4c7f
authored
Dec 14, 2006
by
Juanma Barranquero
Browse files
(w32_wnd_proc): Force non-tooltip frames to respect the minimum tracking size.
Remove non-working old hack to do the same.
parent
0aaf5bb0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
src/ChangeLog
src/ChangeLog
+5
-0
src/w32fns.c
src/w32fns.c
+5
-5
No files found.
src/ChangeLog
View file @
8a4c4c7f
2006-12-14 Juanma Barranquero <lekktu@gmail.com>
* w32fns.c (w32_wnd_proc): Force non-tooltip frames to respect the
minimum tracking size. Remove non-working old hack to do the same.
2006-12-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
* emacs.c (handle_user_signal): Move function to keyboard.c.
...
...
src/w32fns.c
View file @
8a4c4c7f
...
...
@@ -3706,8 +3706,11 @@ w32_wnd_proc (hwnd, msg, wParam, lParam)
However for top/left sizing we will need to fix the X
and Y positions as well. */
lppos->cx -= wdiff;
lppos->cy -= hdiff;
int cx_mintrack = GetSystemMetrics (SM_CXMINTRACK);
int cy_mintrack = GetSystemMetrics (SM_CYMINTRACK);
lppos->cx = max (lppos->cx - wdiff, cx_mintrack);
lppos->cy = max (lppos->cy - hdiff, cy_mintrack);
if (wp.showCmd != SW_SHOWMAXIMIZED
&& (lppos->flags & SWP_NOMOVE) == 0)
...
...
@@ -3731,9 +3734,6 @@ w32_wnd_proc (hwnd, msg, wParam, lParam)
goto dflt;
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. */
((LPMINMAXINFO) lParam)->ptMaxTrackSize.x = 32767;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment