GNU bug report logs - #1348
set-frame-width and set-frame-position seem buggy on at least MSWindows

Previous Next

Package: emacs;

Reported by: "Themba Fletcher" <themba <at> shirleymachine.com>

Date: Fri, 14 Nov 2008 22:55:04 UTC

Severity: normal

Done: martin rudalics <rudalics <at> gmx.at>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: grischka <grishka <at> gmx.de>
To: martin rudalics <rudalics <at> gmx.at>
Cc: jasonr <at> f2s.com, 1348 <at> debbugs.gnu.org
Subject: bug#1348: set-frame-width and set-frame-position seem buggy on at	least MSWindows
Date: Tue, 02 Dec 2008 07:11:59 +0100
Below is a patch that fixes the problem on windows.

As to X, it turned out that there is actually something
similar, it calls itself "x_sync_with_move".

Have fun.

########################################
--- w32term-old.c       Mon Dec 01 17:50:28 2008
+++ w32term.c   Tue Dec 02 06:21:48 2008
@@ -4519,6 +4519,7 @@ w32_read_socket (sd, expected, hold_quit
           f = x_window_to_frame (dpyinfo, msg.msg.hwnd);

           /* Inform lisp of whether frame has been iconified etc. */
+          if (-100 != sd)
           if (f)
             {
               switch (msg.msg.wParam)
@@ -5384,6 +5385,7 @@ x_set_offset (f, xoff, yoff, change_grav
                      0, 0,
                      SWP_NOZORDER | SWP_NOSIZE | SWP_NOACTIVATE);
   UNBLOCK_INPUT;
+  w32_read_socket(-100, 0, NULL);
 }


@@ -5509,6 +5511,7 @@ x_set_window_size (f, change_gravity, co
 #endif

   UNBLOCK_INPUT;
+  w32_read_socket(-100, 0, NULL);
 }
 
 /* Mouse warping.  */
########################################





This bug report was last modified 10 years and 296 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.