[xorg-commit-diffs] xc/programs/Xserver/hw/xwin winmultiwindowwindow.c, 1.1.4.1.2.25, 1.1.4.1.2.26

Earle Philhower xorg-commit at pdx.freedesktop.org
Sun Apr 18 12:21:13 EST 2004


Committed by: earle

Update of /cvs/xorg/xc/programs/Xserver/hw/xwin
In directory pdx:/tmp/cvs-serv25484

Modified Files:
      Tag: CYGWIN
	winmultiwindowwindow.c 
Log Message:
Explicitly reset the system menu to WS_POPUP when creating


Index: winmultiwindowwindow.c
===================================================================
RCS file: /cvs/xorg/xc/programs/Xserver/hw/xwin/winmultiwindowwindow.c,v
retrieving revision 1.1.4.1.2.25
retrieving revision 1.1.4.1.2.26
diff -u -d -r1.1.4.1.2.25 -r1.1.4.1.2.26
--- a/winmultiwindowwindow.c	14 Apr 2004 06:12:44 -0000	1.1.4.1.2.25
+++ b/winmultiwindowwindow.c	18 Apr 2004 02:21:10 -0000	1.1.4.1.2.26
@@ -585,6 +585,8 @@
   SetWindowLong (hWnd, GWL_STYLE, WS_POPUP | WS_CLIPCHILDREN | WS_CLIPSIBLINGS);
   SetWindowPos (hWnd, 0, 0, 0, 0, 0,
 		SWP_FRAMECHANGED | SWP_NOZORDER | SWP_NOMOVE | SWP_NOSIZE);
+  /* Make sure it gets the proper system menu for a WS_POPUP, too */
+  GetSystemMenu (hWnd, TRUE);
 
   pWinPriv->hWnd = hWnd;
 




More information about the xorg-commit-diffs mailing list