From 83682f3e4d196c68ed1d053f9eeab767d61b6d4f Mon Sep 17 00:00:00 2001 From: Fabrice Popineau Date: Sat, 25 Jan 2014 15:04:48 +0200 Subject: [PATCH] Fix bug #16517 with display change on MS-Windows while in full-screen mode. src/w32term.c (w32_read_socket): When the WM_DISPLAYCHANGE message arrives, call x_check_fullscreen, in case the new display has a different resolution. --- src/ChangeLog | 6 ++++++ src/w32term.c | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 89b4c06def1..4f4f14e6020 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2014-01-25 Fabrice Popineau + + * w32term.c (w32_read_socket): When the WM_DISPLAYCHANGE message + arrives, call x_check_fullscreen, in case the new display has a + different resolution. (Bug#16517) + 2014-01-25 Eli Zaretskii * term.c (read_menu_input): If the selected frame changes, exit diff --git a/src/w32term.c b/src/w32term.c index a59d5d6edc0..03d5a0047bc 100644 --- a/src/w32term.c +++ b/src/w32term.c @@ -4841,6 +4841,10 @@ w32_read_socket (struct terminal *terminal, if (f) { dpyinfo->n_cbits = msg.msg.wParam; + /* The new display could have a different resolution, in + which case we must reconsider what fullscreen + means. */ + x_check_fullscreen (f); DebPrint (("display change: %d %d\n", (short) LOWORD (msg.msg.lParam), (short) HIWORD (msg.msg.lParam))); -- 2.39.2