[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-26 88a0dd7: In w32fullscreen_hook don't add decorati
From: |
Martin Rudalics |
Subject: |
[Emacs-diffs] emacs-26 88a0dd7: In w32fullscreen_hook don't add decorations to undecorated frames |
Date: |
Thu, 28 Sep 2017 04:11:23 -0400 (EDT) |
branch: emacs-26
commit 88a0dd71f10ffb63fba08c062e948551c3e876c2
Author: Martin Rudalics <address@hidden>
Commit: Martin Rudalics <address@hidden>
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.
---
src/w32term.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/w32term.c b/src/w32term.c
index a7a510b..d7ec401 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -6252,7 +6252,8 @@ w32fullscreen_hook (struct frame *f)
if (FRAME_PREV_FSMODE (f) == FULLSCREEN_BOTH)
{
- SetWindowLong (hwnd, GWL_STYLE, dwStyle | WS_OVERLAPPEDWINDOW);
+ if (!FRAME_UNDECORATED (f))
+ SetWindowLong (hwnd, GWL_STYLE, dwStyle | WS_OVERLAPPEDWINDOW);
SetWindowPlacement (hwnd, &FRAME_NORMAL_PLACEMENT (f));
}
else if (FRAME_PREV_FSMODE (f) == FULLSCREEN_HEIGHT
@@ -6278,7 +6279,8 @@ w32fullscreen_hook (struct frame *f)
w32_fullscreen_rect (hwnd, f->want_fullscreen,
FRAME_NORMAL_PLACEMENT (f).rcNormalPosition,
&rect);
- SetWindowLong (hwnd, GWL_STYLE, dwStyle & ~WS_OVERLAPPEDWINDOW);
+ if (!FRAME_UNDECORATED (f))
+ SetWindowLong (hwnd, GWL_STYLE, dwStyle & ~WS_OVERLAPPEDWINDOW);
SetWindowPos (hwnd, HWND_TOP, rect.left, rect.top,
rect.right - rect.left, rect.bottom - rect.top,
SWP_NOOWNERZORDER | SWP_FRAMECHANGED);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs-26 88a0dd7: In w32fullscreen_hook don't add decorations to undecorated frames,
Martin Rudalics <=