diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32fns.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/w32fns.c b/src/w32fns.c index 25aa22f0683..66cac34b2d9 100644 --- a/src/w32fns.c +++ b/src/w32fns.c | |||
| @@ -2085,8 +2085,8 @@ w32_createwindow (f) | |||
| 2085 | = CreateWindow (EMACS_CLASS, | 2085 | = CreateWindow (EMACS_CLASS, |
| 2086 | f->namebuf, | 2086 | f->namebuf, |
| 2087 | f->output_data.w32->dwStyle | WS_CLIPCHILDREN, | 2087 | f->output_data.w32->dwStyle | WS_CLIPCHILDREN, |
| 2088 | f->left_pos, | 2088 | CW_USEDEFAULT, |
| 2089 | f->top_pos, | 2089 | SW_SHOW, |
| 2090 | rect.right - rect.left, | 2090 | rect.right - rect.left, |
| 2091 | rect.bottom - rect.top, | 2091 | rect.bottom - rect.top, |
| 2092 | NULL, | 2092 | NULL, |
| @@ -2107,6 +2107,11 @@ w32_createwindow (f) | |||
| 2107 | 2107 | ||
| 2108 | /* Do this to discard the default setting specified by our parent. */ | 2108 | /* Do this to discard the default setting specified by our parent. */ |
| 2109 | ShowWindow (hwnd, SW_HIDE); | 2109 | ShowWindow (hwnd, SW_HIDE); |
| 2110 | |||
| 2111 | /* Update frame positions. */ | ||
| 2112 | GetWindowRect (hwnd, &rect); | ||
| 2113 | f->left_pos = rect.left; | ||
| 2114 | f->top_pos = rect.top; | ||
| 2110 | } | 2115 | } |
| 2111 | } | 2116 | } |
| 2112 | 2117 | ||