Fixed a problem with managed mode, where popup windows with a WS_DLGFRAME

style were appearing with a title bar. According to the docs for
WS_DLGFRAME a window with this style cannot have a title bar.
This commit is contained in:
Noel Borthwick 1999-04-25 09:19:21 +00:00 committed by Alexandre Julliard
parent a739a69c41
commit ee7199549a
1 changed files with 4 additions and 1 deletions

View File

@ -185,7 +185,10 @@ BOOL X11DRV_WND_CreateWindow(WND *wndPtr, CLASS *classPtr, CREATESTRUCTA *cs, BO
XWMHints* wm_hints;
XSetWindowAttributes win_attr;
if (Options.managed && ((cs->style & (WS_DLGFRAME | WS_THICKFRAME)) ||
/* Create "managed" windows only if a title bar or resizable */
/* frame is required. */
if (Options.managed && ( ((cs->style & WS_CAPTION) == WS_CAPTION) ||
(cs->style & WS_THICKFRAME) ||
(cs->dwExStyle & WS_EX_DLGMODALFRAME)))
{
win_attr.event_mask = ExposureMask | KeyPressMask |