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:
parent
a739a69c41
commit
ee7199549a
|
@ -185,7 +185,10 @@ BOOL X11DRV_WND_CreateWindow(WND *wndPtr, CLASS *classPtr, CREATESTRUCTA *cs, BO
|
||||||
XWMHints* wm_hints;
|
XWMHints* wm_hints;
|
||||||
XSetWindowAttributes win_attr;
|
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)))
|
(cs->dwExStyle & WS_EX_DLGMODALFRAME)))
|
||||||
{
|
{
|
||||||
win_attr.event_mask = ExposureMask | KeyPressMask |
|
win_attr.event_mask = ExposureMask | KeyPressMask |
|
||||||
|
|
Loading…
Reference in New Issue