Use CurrentTime instead of generic.lastTime.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25405 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2007-08-21 13:37:20 +00:00
parent d164d499c2
commit 4bd371d64a
2 changed files with 13 additions and 7 deletions

View file

@ -1,3 +1,10 @@
2007-08-21 Fred Kiefer <FredKiefer@gmx.de>
* Source/x11/XGServerWindow.m (-_setupRootWindow): Revert last
change.
* Source/x11/XGServerWindow.m (-setinputfocus:): Use CurrentTime
instead of generic.lastTime.
2007-08-21 Fred Kiefer <FredKiefer@gmx.de>
* Source/x11/XGServerEvent.m (-processEvent:): Made handling of

View file

@ -1346,12 +1346,9 @@ _get_next_prop_new_event(Display *display, XEvent *event, char *arg)
* Initialize time of last events to be the start of time - not
* the current time!
*/
if (CurrentTime == 0)
{
generic.lastClick = 1;
generic.lastMotion = 1;
}
generic.lastTime = CurrentTime;
generic.lastClick = 1;
generic.lastMotion = 1;
generic.lastTime = 1;
/*
* Set up standard atoms.
@ -3552,7 +3549,9 @@ static BOOL didCreatePixmaps;
NSDebugLLog(@"Focus", @"Setting focus to %d", window->number);
generic.desiredFocusWindow = win;
generic.focusRequestNumber = XNextRequest(dpy);
XSetInputFocus(dpy, window->ident, RevertToParent, generic.lastTime);
// In the case of activation via DO the lastTime is outdated and cannot be used.
// XSetInputFocus(dpy, window->ident, RevertToParent, generic.lastTime);
XSetInputFocus(dpy, window->ident, RevertToParent, CurrentTime);
[inputServer ximFocusICWindow: window];
}