mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2025-01-28 22:04:43 -08:00
user32-dialog_focus: Add patchset.
This commit is contained in:
parent
4912f27424
commit
0121326c5a
@ -0,0 +1,35 @@
|
||||
From 1e118030e5b1da7bbfa4c03548b15beb137497f5 Mon Sep 17 00:00:00 2001
|
||||
From: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
|
||||
Date: Thu, 6 Dec 2018 15:01:54 +1100
|
||||
Subject: [PATCH] user32: Dont reset focus if current control is a child of our
|
||||
parent
|
||||
|
||||
---
|
||||
dlls/user32/dialog.c | 11 ++++++++++-
|
||||
1 file changed, 10 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/dlls/user32/dialog.c b/dlls/user32/dialog.c
|
||||
index 0b33a57..0d98d0a 100644
|
||||
--- a/dlls/user32/dialog.c
|
||||
+++ b/dlls/user32/dialog.c
|
||||
@@ -692,7 +692,16 @@ static HWND DIALOG_CreateIndirect( HINSTANCE hInst, LPCVOID dlgTemplate,
|
||||
SetFocus( focus );
|
||||
}
|
||||
else
|
||||
- SetFocus( hwnd );
|
||||
+ {
|
||||
+ if (template.style & WS_CHILD)
|
||||
+ {
|
||||
+ HWND hParent = GetParent(hwnd);
|
||||
+ if (!IsChild(hParent, GetFocus()))
|
||||
+ SetFocus( hwnd );
|
||||
+ }
|
||||
+ else
|
||||
+ SetFocus( hwnd );
|
||||
+ }
|
||||
}
|
||||
}
|
||||
|
||||
--
|
||||
1.9.1
|
||||
|
1
patches/user32-dialog_focus/definition
Normal file
1
patches/user32-dialog_focus/definition
Normal file
@ -0,0 +1 @@
|
||||
Fixes: [46215] File Open Dialog fails to set focus to Filename text box
|
Loading…
x
Reference in New Issue
Block a user