From b56f4532d1a5febb8df45da0e3d3ad7bf8838e5f Mon Sep 17 00:00:00 2001 From: Alexander Gottwald Date: Thu, 16 Sep 2004 13:22:52 +0000 Subject: [PATCH] Remove code which prevented the use from specifying the window size in nodecoration mode. --- hw/xwin/ChangeLog | 30 ++++++++++++++++++------------ hw/xwin/wincreatewnd.c | 18 ------------------ 2 files changed, 18 insertions(+), 30 deletions(-) diff --git a/hw/xwin/ChangeLog b/hw/xwin/ChangeLog index 15bbe93e2..734aa29a1 100644 --- a/hw/xwin/ChangeLog +++ b/hw/xwin/ChangeLog @@ -1,3 +1,9 @@ +2004-09-16 Alexander Gottwald + + * wincreatewnd.c (winCreateBoundingWindowWindowed): + Remove code which prevented the use from specifying the window + size in nodecoration mode. + 2004-08-26 Chris B * win.h, winmessages.h: @@ -18,18 +24,18 @@ fUseUnicode, because it don't mean wheather Windows support Unicode or not. -2004-07-31 Alexander Gottwald +2004-07-31 Alexander Gottwald * win.h: adjust prototype for winInitCmapPrivates to match Egberts change. -2004-07-30 Egbert Eich +2004-07-30 Egbert Eich * winallpriv.c: (winInitCmapPrivates): test if colormap with index really exists in the list of installed maps before using it. -2004-07-09 Alexander Gottwald +2004-07-09 Alexander Gottwald * winconfig.c: Add entry for irish layout (ie) * InitOutput.c, winerror.c, winglobals.c: rename g_fUseMsg to @@ -38,38 +44,38 @@ -silent-dup-error to allow silent termination if another instance of XWin was found running -2004-06-27 Alexander Gottwald +2004-06-27 Alexander Gottwald * winconfig.c: Add entry for us layout. This changes not much but removes a strange error message about the unknown us layout. -2004-06-24 Alexander Gottwald +2004-06-24 Alexander Gottwald * InitOutput.c: Check for textmode mounted /tmp and print a warning -2004-06-15 Harold Hunt +2004-06-15 Harold Hunt * windialogs.c: Fix path to locally installed changelog for the About dialog box. -2004-05-27 Alexander Gottwald +2004-05-27 Alexander Gottwald * winpriv.c: Create win32 window if not already created * winmultiwindowwindow.c: Export winCreateWindowWindow -2004-05-27 Alexander Gottwald +2004-05-27 Alexander Gottwald * win.h: Allow CYGDEBUG to defined in the Makefile * winwindow.h: Allow CYGWINDOWING_DEBUG to defined in the Makefile -2004-05-19 Alexander Gottwald +2004-05-19 Alexander Gottwald * winmultiwindowicons.c (winInitGlobalIcons): Load the small default icon too * winprefs.h, winprefs.c (winOverrideDefaultIcon): Takes the iconsize as parameter -2004-05-19 Alexander Gottwald +2004-05-19 Alexander Gottwald * win.h, winmultiwindowicons.c (winXIconToHICON): Takes iconsize as parameter @@ -94,14 +100,14 @@ winwin32rootless.c (winMWExtWMDestroyFrame): Use winDestroyIcon to free the icon without destroying the global icon. -2004-05-17 Alexander Gottwald +2004-05-17 Alexander Gottwald * windialogs.c (winExitDlgProc, winAboutDlgProc), winmultiwindowwndproc.c (winTopLevelWindowProc), winwndproc.c (winWindowProc): Check if g_fSoftwareCursor is set before calling ShowCursor. -2004-05-09 Dan Wilks +2004-05-09 Dan Wilks * winclipboard.h: Add extern prototypes for winDebug, winErrorFVerb copied from winmsg.h. diff --git a/hw/xwin/wincreatewnd.c b/hw/xwin/wincreatewnd.c index 7a1c6f352..606da2e02 100644 --- a/hw/xwin/wincreatewnd.c +++ b/hw/xwin/wincreatewnd.c @@ -240,24 +240,6 @@ winCreateBoundingWindowWindowed (ScreenPtr pScreen) + GetSystemMetrics (SM_CYCAPTION); } } - else - { - /* - * User gave a width and height but also said no decoration. - * In this case we have to ignore the requested width and height - * and instead use the largest possible window that we can. - */ - if (pScreenInfo->fMultipleMonitors) - { - iWidth = GetSystemMetrics (SM_CXVIRTUALSCREEN); - iHeight = GetSystemMetrics (SM_CYVIRTUALSCREEN); - } - else - { - iWidth = GetSystemMetrics (SM_CXSCREEN); - iHeight = GetSystemMetrics (SM_CYSCREEN); - } - } } else {