Change: Add window description flag to disallow interactive window closing. (#11008)

This replaces/simplifies testing for a closebox to allow closing a window with right-click, and testing for specific window classes when closing all windows by hotkey.

This allows right-click closing of dropdowns and the high-score window.
This commit is contained in:
PeterN
2023-06-14 17:24:14 +01:00
committed by GitHub
parent 7c37dcb8e3
commit f51f117b00
8 changed files with 14 additions and 20 deletions

View File

@@ -654,7 +654,7 @@ static const NWidgetPart _nested_tooltips_widgets[] = {
static WindowDesc _tool_tips_desc(
WDP_MANUAL, nullptr, 0, 0, // Coordinates and sizes are not used,
WC_TOOLTIPS, WC_NONE,
WDF_NO_FOCUS,
WDF_NO_FOCUS | WDF_NO_CLOSE,
_nested_tooltips_widgets, lengthof(_nested_tooltips_widgets)
);