diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32term.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/w32term.c b/src/w32term.c index a7a510b9ecb..d7ec40118f3 100644 --- a/src/w32term.c +++ b/src/w32term.c | |||
| @@ -6252,7 +6252,8 @@ w32fullscreen_hook (struct frame *f) | |||
| 6252 | 6252 | ||
| 6253 | if (FRAME_PREV_FSMODE (f) == FULLSCREEN_BOTH) | 6253 | if (FRAME_PREV_FSMODE (f) == FULLSCREEN_BOTH) |
| 6254 | { | 6254 | { |
| 6255 | SetWindowLong (hwnd, GWL_STYLE, dwStyle | WS_OVERLAPPEDWINDOW); | 6255 | if (!FRAME_UNDECORATED (f)) |
| 6256 | SetWindowLong (hwnd, GWL_STYLE, dwStyle | WS_OVERLAPPEDWINDOW); | ||
| 6256 | SetWindowPlacement (hwnd, &FRAME_NORMAL_PLACEMENT (f)); | 6257 | SetWindowPlacement (hwnd, &FRAME_NORMAL_PLACEMENT (f)); |
| 6257 | } | 6258 | } |
| 6258 | else if (FRAME_PREV_FSMODE (f) == FULLSCREEN_HEIGHT | 6259 | else if (FRAME_PREV_FSMODE (f) == FULLSCREEN_HEIGHT |
| @@ -6278,7 +6279,8 @@ w32fullscreen_hook (struct frame *f) | |||
| 6278 | 6279 | ||
| 6279 | w32_fullscreen_rect (hwnd, f->want_fullscreen, | 6280 | w32_fullscreen_rect (hwnd, f->want_fullscreen, |
| 6280 | FRAME_NORMAL_PLACEMENT (f).rcNormalPosition, &rect); | 6281 | FRAME_NORMAL_PLACEMENT (f).rcNormalPosition, &rect); |
| 6281 | SetWindowLong (hwnd, GWL_STYLE, dwStyle & ~WS_OVERLAPPEDWINDOW); | 6282 | if (!FRAME_UNDECORATED (f)) |
| 6283 | SetWindowLong (hwnd, GWL_STYLE, dwStyle & ~WS_OVERLAPPEDWINDOW); | ||
| 6282 | SetWindowPos (hwnd, HWND_TOP, rect.left, rect.top, | 6284 | SetWindowPos (hwnd, HWND_TOP, rect.left, rect.top, |
| 6283 | rect.right - rect.left, rect.bottom - rect.top, | 6285 | rect.right - rect.left, rect.bottom - rect.top, |
| 6284 | SWP_NOOWNERZORDER | SWP_FRAMECHANGED); | 6286 | SWP_NOOWNERZORDER | SWP_FRAMECHANGED); |