[teklib-general] teklib: display_x11: Input message time stamp was missing. Fixed
Timm S. Mueller
tmueller at neoscientists.org
Fri Apr 18 02:51:25 CEST 2008
details: http://hg.teklib.org/teklib/rev/4fe5e2dbe9ab
changeset: 181:4fe5e2dbe9ab
user: Timm S. Mueller <tmueller at neoscientists.org>
date: Wed Apr 16 18:53:48 2008 +0200
description:
display_x11: Input message time stamp was missing. Fixed
diffs (20 lines):
diff -r 9a2f1726822a -r 4fe5e2dbe9ab src/display_x11/display_x11_inst.c
--- a/src/display_x11/display_x11_inst.c Tue Apr 15 09:56:26 2008 +0200
+++ b/src/display_x11/display_x11_inst.c Wed Apr 16 18:53:48 2008 +0200
@@ -524,7 +524,7 @@ static TBOOL getimsg(TMOD_X11 *mod, VISU
static TBOOL getimsg(TMOD_X11 *mod, VISUAL *v, TIMSG **msgptr, TUINT type)
{
TIMSG *msg = (TIMSG *) TRemHead(&mod->x11_imsgpool);
- if (msg == NULL)
+ if (msg == TNULL)
msg = TExecAllocMsg0(mod->x11_ExecBase, sizeof(TIMSG));
if (msg)
{
@@ -532,6 +532,7 @@ static TBOOL getimsg(TMOD_X11 *mod, VISU
msg->timsg_Qualifier = v->keyqual;
msg->timsg_MouseX = v->mousex;
msg->timsg_MouseY = v->mousey;
+ TTimeQueryTime(mod->x11_TimeBase, mod->x11_TimeReq, &msg->timsg_TimeStamp);
*msgptr = msg;
return TTRUE;
}
More information about the teklib-general
mailing list