Subject: Re: bug#1348: set-frame-width and set-frame-position seem buggy on at least MSWindows

From: grischka <[email-masked]>
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.  */
########################################