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();
|
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);
|
||||||
|
|
Loading…
Reference in New Issue