Skip to content

Commit b4f7cd3

Browse files
committed
[[ Bug 12297 ]] Make sure WM_POPUP is handled in MCStack::realize.
1 parent cb4a798 commit b4f7cd3

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

docs/notes/bugfix-12297.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Windows opened in popup mode have decorations.

engine/src/desktop-stack.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,15 @@ void MCStack::realize(void)
8989
loadwindowshape();
9090

9191
// Compute the level of the window
92+
// MW-2014-06-11: [[ Bug 12297 ]] Make sure 'popup' mode means PopUp window (i.e. no decorations!)
9293
MCPlatformWindowStyle t_window_style;;
9394
if (getflag(F_DECORATIONS) && (decorations & WD_UTILITY) != 0)
9495
t_window_style = kMCPlatformWindowStyleUtility;
9596
else if (mode == WM_PALETTE)
9697
t_window_style = kMCPlatformWindowStylePalette;
9798
else if (mode == WM_MODAL || mode == WM_SHEET)
9899
t_window_style = kMCPlatformWindowStyleDialog;
99-
else if (mode == WM_PULLDOWN || mode == WM_OPTION || mode == WM_COMBO)
100+
else if (mode == WM_PULLDOWN || mode == WM_OPTION || mode == WM_COMBO || mode == WM_POPUP)
100101
t_window_style = kMCPlatformWindowStylePopUp;
101102
else if (mode == WM_CASCADE)
102103
t_window_style = kMCPlatformWindowStylePopUp;

0 commit comments

Comments
 (0)