mirror of
https://github.com/gnustep/libs-back.git
synced 2025-05-30 08:51:03 +00:00
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:
parent
5e75161bf3
commit
045104c0c1
2 changed files with 13 additions and 7 deletions
|
@ -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>
|
2007-08-21 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
* Source/x11/XGServerEvent.m (-processEvent:): Made handling of
|
* Source/x11/XGServerEvent.m (-processEvent:): Made handling of
|
||||||
|
|
|
@ -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
|
* Initialize time of last events to be the start of time - not
|
||||||
* the current time!
|
* the current time!
|
||||||
*/
|
*/
|
||||||
if (CurrentTime == 0)
|
generic.lastClick = 1;
|
||||||
{
|
generic.lastMotion = 1;
|
||||||
generic.lastClick = 1;
|
generic.lastTime = 1;
|
||||||
generic.lastMotion = 1;
|
|
||||||
}
|
|
||||||
generic.lastTime = CurrentTime;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Set up standard atoms.
|
* Set up standard atoms.
|
||||||
|
@ -3552,7 +3549,9 @@ static BOOL didCreatePixmaps;
|
||||||
NSDebugLLog(@"Focus", @"Setting focus to %d", window->number);
|
NSDebugLLog(@"Focus", @"Setting focus to %d", window->number);
|
||||||
generic.desiredFocusWindow = win;
|
generic.desiredFocusWindow = win;
|
||||||
generic.focusRequestNumber = XNextRequest(dpy);
|
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];
|
[inputServer ximFocusICWindow: window];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue