Commit 6ec132b6 authored by Ove Kaaven's avatar Ove Kaaven Committed by Alexandre Julliard

Resetting X focus should not be done with SetFocus32. Called

the windowing (X11) driver's SetFocus routine directly instead. This apparently fixes a big heap of user interface problems.
parent c521db61
...@@ -2499,8 +2499,9 @@ BOOL32 WINAPI SetWindowPos32( HWND32 hwnd, HWND32 hwndInsertAfter, ...@@ -2499,8 +2499,9 @@ BOOL32 WINAPI SetWindowPos32( HWND32 hwnd, HWND32 hwndInsertAfter,
focus = curr = GetFocus32(); focus = curr = GetFocus32();
while (curr) { while (curr) {
if (curr == hwnd) { if (curr == hwnd) {
SetFocus32( 0 ); WND *pFocus = WIN_FindWndPtr( focus );
SetFocus32( focus ); if (pFocus)
pFocus->pDriver->pSetFocus(pFocus);
break; break;
} }
curr = GetParent32(curr); curr = GetParent32(curr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment