mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-11 08:30:45 -08:00
In w32fullscreen_hook don't add decorations to undecorated frames
* src/w32term.c (w32fullscreen_hook): Do not add (or try to remove) decorations for undecorated frames.
This commit is contained in:
parent
ce540f8a68
commit
88a0dd71f1
1 changed files with 4 additions and 2 deletions
|
|
@ -6252,6 +6252,7 @@ w32fullscreen_hook (struct frame *f)
|
||||||
|
|
||||||
if (FRAME_PREV_FSMODE (f) == FULLSCREEN_BOTH)
|
if (FRAME_PREV_FSMODE (f) == FULLSCREEN_BOTH)
|
||||||
{
|
{
|
||||||
|
if (!FRAME_UNDECORATED (f))
|
||||||
SetWindowLong (hwnd, GWL_STYLE, dwStyle | WS_OVERLAPPEDWINDOW);
|
SetWindowLong (hwnd, GWL_STYLE, dwStyle | WS_OVERLAPPEDWINDOW);
|
||||||
SetWindowPlacement (hwnd, &FRAME_NORMAL_PLACEMENT (f));
|
SetWindowPlacement (hwnd, &FRAME_NORMAL_PLACEMENT (f));
|
||||||
}
|
}
|
||||||
|
|
@ -6278,6 +6279,7 @@ w32fullscreen_hook (struct frame *f)
|
||||||
|
|
||||||
w32_fullscreen_rect (hwnd, f->want_fullscreen,
|
w32_fullscreen_rect (hwnd, f->want_fullscreen,
|
||||||
FRAME_NORMAL_PLACEMENT (f).rcNormalPosition, &rect);
|
FRAME_NORMAL_PLACEMENT (f).rcNormalPosition, &rect);
|
||||||
|
if (!FRAME_UNDECORATED (f))
|
||||||
SetWindowLong (hwnd, GWL_STYLE, dwStyle & ~WS_OVERLAPPEDWINDOW);
|
SetWindowLong (hwnd, GWL_STYLE, dwStyle & ~WS_OVERLAPPEDWINDOW);
|
||||||
SetWindowPos (hwnd, HWND_TOP, rect.left, rect.top,
|
SetWindowPos (hwnd, HWND_TOP, rect.left, rect.top,
|
||||||
rect.right - rect.left, rect.bottom - rect.top,
|
rect.right - rect.left, rect.bottom - rect.top,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue