Brian wrote:
SOLVED
XInitThreads() must be called prior to initailizing X , then it works using
XLockDisplay() and XUnlockDisplay()
XLockDisplay(TheDisplay);
NewEvent := Xpending(TheDisplay) > 0 ;
if NewEvent then
begin
XNextEvent(TheDisplay, @myevent);
KeypressedX := my
SOLVED
XInitThreads() must be called prior to initailizing X , then it works using
XLockDisplay() and XUnlockDisplay()
XLockDisplay(TheDisplay);
NewEvent := Xpending(TheDisplay) > 0 ;
if NewEvent then
begin
XNextEvent(TheDisplay, @myevent);
KeypressedX := myevent._type = k