]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix bug #16517 with display change on MS-Windows while in full-screen mode.
authorFabrice Popineau <fabrice.popineau@gmail.com>
Sat, 25 Jan 2014 13:04:48 +0000 (15:04 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sat, 25 Jan 2014 13:04:48 +0000 (15:04 +0200)
 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
src/w32term.c

index 89b4c06def1d546b5d3b2f149532735f7bc68e9d..4f4f14e602050aa6e4ee80409884cbb48398e606 100644 (file)
@@ -1,3 +1,9 @@
+2014-01-25  Fabrice Popineau  <fabrice.popineau@gmail.com>
+
+       * 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  <eliz@gnu.org>
 
        * term.c (read_menu_input): If the selected frame changes, exit
index a59d5d6edc0df8adcd8961900eab3014f56514ea..03d5a0047bc567f12e436d6424e135109b98f6e0 100644 (file)
@@ -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)));