- Do not call XConfigureWindow if SetWindowPos was called due to a received ConfigureNotify event (to avoid recursion). - Use XTranslateCoordinates in EVENT_GetGeometry instead of manually walking the tree. - Set XSizeHint.win_gravity to StaticGravity for managed windows.
diff --git a/include/winuser.h b/include/winuser.h index 5118fac..88d9f85 100644 --- a/include/winuser.h +++ b/include/winuser.h
@@ -2336,6 +2336,7 @@ #define SWP_NOSENDCHANGING 0x0400 #define SWP_DEFERERASE 0x2000 +#define SWP_ASYNCWINDOWPOS 0x4000 #define HWND_DESKTOP ((HWND)0) #define HWND_BROADCAST ((HWND)0xffff) @@ -3542,7 +3543,7 @@ HHOOK WINAPI SetWindowsHookExA(INT,HOOKPROC,HINSTANCE,DWORD); HHOOK WINAPI SetWindowsHookExW(INT,HOOKPROC,HINSTANCE,DWORD); #define SetWindowsHookEx WINELIB_NAME_AW(SetWindowsHookEx) -BOOL WINAPI SetWindowPos(HWND,HWND,INT,INT,INT,INT,WORD); +BOOL WINAPI SetWindowPos(HWND,HWND,INT,INT,INT,INT,UINT); INT WINAPI SetWindowRgn(HWND,HRGN,BOOL); BOOL WINAPI SetWindowTextA(HWND,LPCSTR); BOOL WINAPI SetWindowTextW(HWND,LPCWSTR);