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.
This commit is contained in:
parent
c521db616a
commit
6ec132b61a
|
@ -2499,8 +2499,9 @@ BOOL32 WINAPI SetWindowPos32( HWND32 hwnd, HWND32 hwndInsertAfter,
|
|||
focus = curr = GetFocus32();
|
||||
while (curr) {
|
||||
if (curr == hwnd) {
|
||||
SetFocus32( 0 );
|
||||
SetFocus32( focus );
|
||||
WND *pFocus = WIN_FindWndPtr( focus );
|
||||
if (pFocus)
|
||||
pFocus->pDriver->pSetFocus(pFocus);
|
||||
break;
|
||||
}
|
||||
curr = GetParent32(curr);
|
||||
|
|
Loading…
Reference in New Issue