* Source/x11/XGServerEvent.m (_handleTakeFocusAtom:forContext:):

Unset ignore_take_focus for the key window.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@24001 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Matt Rice 2006-10-31 12:48:23 +00:00
parent 513475a150
commit 8e248cb078
2 changed files with 11 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2006-10-31 Matt Rice <ratmice@yahoo.com>
* Source/x11/XGServerEvent.m (_handleTakeFocusAtom:forContext:):
Unset ignore_take_focus for the key window.
2006-10-29 Richard Frith-Macdonald <rfm@gnu.org>
* Source/xlib/XGFont.m: Use encodingFromCharset (undeprecated and

View file

@ -1521,6 +1521,12 @@ static int check_modifier (XEvent *xEvent, KeySym key_sym,
NSDebugLLog(@"Focus", @"take focus:%d (current=%d key=%d)",
cWin->number, generic.currentFocusWindow, key_num);
/* Sometimes window managers lose the setinputfocus on the key window
* e.g. when ordering out a window with focus then ordering in the key window. * it might search for a window until one accepts its take focus request.
*/
if (key_num == cWin->number)
cWin->ignore_take_focus = NO;
/* Invalidate the previous request. It's possible the app lost focus
before this request was fufilled and we are being focused again,
or ??? */