From 6ec132b61a26d1c75c4fde653c1051ead417f68e Mon Sep 17 00:00:00 2001 From: Ove Kaaven Date: Mon, 15 Feb 1999 12:46:32 +0000 Subject: [PATCH] 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. --- windows/winpos.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/windows/winpos.c b/windows/winpos.c index 892b2439b5e..7dd7354b229 100644 --- a/windows/winpos.c +++ b/windows/winpos.c @@ -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);