summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2015-02-01 12:23:39 +0000
committerfrosch <frosch@openttd.org>2015-02-01 12:23:39 +0000
commitc9114af70627010c81e80d0b3530554d2b06b9b1 (patch)
tree03aebf171f118341c37dd4fa7c5ac272af47b1db /src
parent5e2bc783bf021b9f4f13888f1e219559e59d9fa4 (diff)
downloadopenttd-c9114af70627010c81e80d0b3530554d2b06b9b1.tar.xz
(svn r27131) -Fix: Dropdown- and tooltip-windows should not steal the focus.
Diffstat (limited to 'src')
-rw-r--r--src/misc_gui.cpp2
-rw-r--r--src/widgets/dropdown.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp
index 1ed7444bc..0f61d67de 100644
--- a/src/misc_gui.cpp
+++ b/src/misc_gui.cpp
@@ -632,7 +632,7 @@ static const NWidgetPart _nested_tooltips_widgets[] = {
static WindowDesc _tool_tips_desc(
WDP_MANUAL, NULL, 0, 0, // Coordinates and sizes are not used,
WC_TOOLTIPS, WC_NONE,
- 0,
+ WDF_NO_FOCUS,
_nested_tooltips_widgets, lengthof(_nested_tooltips_widgets)
);
diff --git a/src/widgets/dropdown.cpp b/src/widgets/dropdown.cpp
index e83772799..aecfc6b2f 100644
--- a/src/widgets/dropdown.cpp
+++ b/src/widgets/dropdown.cpp
@@ -82,7 +82,7 @@ static const NWidgetPart _nested_dropdown_menu_widgets[] = {
static WindowDesc _dropdown_desc(
WDP_MANUAL, NULL, 0, 0,
WC_DROPDOWN_MENU, WC_NONE,
- 0,
+ WDF_NO_FOCUS,
_nested_dropdown_menu_widgets, lengthof(_nested_dropdown_menu_widgets)
);