Solve the window focus bug by no longer activating the window on each

resize.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@29414 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2010-01-26 19:05:35 +00:00
parent 99a4001565
commit 2f9772ccde
3 changed files with 12 additions and 5 deletions

View file

@ -1,3 +1,11 @@
2010-01-26 Fred Kiefer <FredKiefer@gmx.de>
* Source/win32/w32_text_focus.m: Re-enable the focus in event.
* Source\win32\WIN32Server.m (-movewindow::, -placewindow::): Use
the SWP_NOACTIVATE flag to pervent window activation.
* Source\win32\WIN32Server.m (-setinputstate::): Set active on
main not key.
2010-01-26 Fred Kiefer <FredKiefer@gmx.de>
* Source/x11/XWindowBuffer.m (+windowBufferForWindow:depthInfo:):

View file

@ -1218,7 +1218,7 @@ LRESULT CALLBACK MainWndProc(HWND hwnd, UINT uMsg,
p = GSWindowOriginToMS((HWND)winNum, loc);
SetWindowPos((HWND)winNum, NULL, p.x, p.y, 0, 0,
SWP_NOZORDER | SWP_NOSIZE);
SWP_NOZORDER | SWP_NOSIZE | SWP_NOACTIVATE);
}
- (void) placewindow: (NSRect)frame : (int) winNum
@ -1233,7 +1233,8 @@ LRESULT CALLBACK MainWndProc(HWND hwnd, UINT uMsg,
GetWindowRect((HWND)winNum, &r2);
SetWindowPos((HWND)winNum, NULL,
r.left, r.top, r.right - r.left, r.bottom - r.top, SWP_NOZORDER);
r.left, r.top, r.right - r.left, r.bottom - r.top,
SWP_NOZORDER | SWP_NOACTIVATE);
if ((win->useHDC)
&& (r.right - r.left != r2.right - r2.left)
@ -1426,7 +1427,7 @@ LRESULT CALLBACK MainWndProc(HWND hwnd, UINT uMsg,
{
return;
}
if (state == GSTitleBarKey)
if (state == GSTitleBarMain)
{
SetActiveWindow((HWND)winNum);
}

View file

@ -52,7 +52,6 @@
that's too slow and allows the window state to get out of sync,
causing bad recursion problems */
/*
NSEvent *ev;
ev = [NSEvent otherEventWithType: NSAppKitDefined
@ -67,7 +66,6 @@
NSDebugLLog(@"Focus", @"Making %d key", (int)hwnd);
[EVENT_WINDOW(hwnd) sendEvent: ev];
*/
}
return 0;