Check-in [c9b8d67ace]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:small fix in SDL version of TkpDoOneEvent()
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: c9b8d67acec85e0c1d274b82bbd8c6ec78964c6c
User & Date: chw 2016-11-27 18:56:55
Context
2016-11-30
05:51
elimate compiler warnings in sdl2tk check-in: 5d19f522b0 user: chw tags: trunk
2016-11-27
18:56
small fix in SDL version of TkpDoOneEvent() check-in: c9b8d67ace user: chw tags: trunk
18:55
add tk upstream changes check-in: c607156404 user: chw tags: trunk
Changes

Changes to jni/sdl2tk/sdl/tkSDLEvent.c.

513
514
515
516
517
518
519


520
521
522
523
524
525
526
527


528



529
530
531
532
533
534
535

	for (dispPtr = TkGetDisplayList(); dispPtr != NULL;
	     dispPtr = dispPtr->nextPtr) {
	    fd = ConnectionNumber(dispPtr->display);
	    if (fd < 0) {
		if (XEventsQueued(dispPtr->display, QueuedAlready) > 0) {
		    DisplayFileProc(dispPtr, TCL_READABLE);


		}
		continue;
	    }
	    index = fd/(NBBY*sizeof(fd_mask));
	    bit = ((fd_mask)1) << (fd%(NBBY*sizeof(fd_mask)));
	    if ((readMask[index] & bit) ||
		(XEventsQueued(dispPtr->display, QueuedAlready) > 0)) {
		DisplayFileProc(dispPtr, TCL_READABLE);


	    }



	}
#endif
	if (Tcl_ServiceEvent(TCL_WINDOW_EVENTS)) {
	    return 1;
	}

	/*







>
>








>
>

>
>
>







513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542

	for (dispPtr = TkGetDisplayList(); dispPtr != NULL;
	     dispPtr = dispPtr->nextPtr) {
	    fd = ConnectionNumber(dispPtr->display);
	    if (fd < 0) {
		if (XEventsQueued(dispPtr->display, QueuedAlready) > 0) {
		    DisplayFileProc(dispPtr, TCL_READABLE);
		    done = 1;
		    break;
		}
		continue;
	    }
	    index = fd/(NBBY*sizeof(fd_mask));
	    bit = ((fd_mask)1) << (fd%(NBBY*sizeof(fd_mask)));
	    if ((readMask[index] & bit) ||
		(XEventsQueued(dispPtr->display, QueuedAlready) > 0)) {
		DisplayFileProc(dispPtr, TCL_READABLE);
		done = 1;
		break;
	    }
	}
	if (done) {
	    break;
	}
#endif
	if (Tcl_ServiceEvent(TCL_WINDOW_EVENTS)) {
	    return 1;
	}

	/*