emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r112038: Fix bug #13937 with creating


From: Eli Zaretskii
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r112038: Fix bug #13937 with creating a maximized frame on MS-Windows.
Date: Wed, 13 Mar 2013 19:31:06 +0200
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 112038
fixes bug: http://debbugs.gnu.org/13937
committer: Eli Zaretskii <address@hidden>
branch nick: trunk
timestamp: Wed 2013-03-13 19:31:06 +0200
message:
  Fix bug #13937 with creating a maximized frame on MS-Windows.
  
   src/w32term.c (w32_read_socket): If we Emacs frame is being
   activated, call w32fullscreen_hook, to make sure the new frame
   dimensions are in effect.
modified:
  src/ChangeLog
  src/w32term.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2013-03-13 15:41:54 +0000
+++ b/src/ChangeLog     2013-03-13 17:31:06 +0000
@@ -1,3 +1,9 @@
+2013-03-13  Eli Zaretskii  <address@hidden>
+
+       * w32term.c (w32_read_socket): If we Emacs frame is being
+       activated, call w32fullscreen_hook, to make sure the new frame
+       dimensions are in effect.  (Bug#13937)
+
 2013-03-13  Dmitry Antipov  <address@hidden>
 
        * xdisp.c (init_iterator): Simplify because both character and byte

=== modified file 'src/w32term.c'
--- a/src/w32term.c     2013-03-10 22:55:25 +0000
+++ b/src/w32term.c     2013-03-13 17:31:06 +0000
@@ -236,6 +236,7 @@
 #endif
 static void my_set_foreground_window (HWND);
 static void my_destroy_window (struct frame *, HWND);
+static void w32fullscreen_hook (FRAME_PTR);
 
 #ifdef GLYPH_DEBUG
 static void x_check_font (struct frame *, struct font *);
@@ -4717,7 +4718,16 @@
        case WM_ACTIVATEAPP:
          f = x_window_to_frame (dpyinfo, msg.msg.hwnd);
          if (f)
-           x_check_fullscreen (f);
+           {
+             /* If we are being activated, run the full-screen hook
+                function, to actually install the required size in
+                effect.  This is because when the hook is run from
+                x_set_fullscreen, the frame might not yet be visible,
+                if that call is a result of make-frame.  */
+             if (msg.msg.wParam)
+               w32fullscreen_hook (f);
+             x_check_fullscreen (f);
+           }
          check_visibility = 1;
          break;
 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]