Revert "#6487 Possible culprit to mouse freeze commented out for testing"
This reverts commit b5c57d9b
This commit is contained in:
parent
b5c57d9b5e
commit
26f4b4da46
1 changed files with 22 additions and 22 deletions
|
|
@ -162,31 +162,31 @@ XWindowsEventQueueBuffer::waitForEvent(double dtimeout)
|
||||||
// we want to give the cpu a chance s owe up this to 25ms
|
// we want to give the cpu a chance s owe up this to 25ms
|
||||||
#define TIMEOUT_DELAY 25
|
#define TIMEOUT_DELAY 25
|
||||||
|
|
||||||
// while (((dtimeout < 0.0) || (remaining > 0)) && QLength(m_display)==0 && retval==0){
|
while (((dtimeout < 0.0) || (remaining > 0)) && QLength(m_display)==0 && retval==0){
|
||||||
#if HAVE_POLL
|
#if HAVE_POLL
|
||||||
// retval = poll(pfds, 2, TIMEOUT_DELAY); //16ms = 60hz, but we make it > to play nicely with the cpu
|
retval = poll(pfds, 2, TIMEOUT_DELAY); //16ms = 60hz, but we make it > to play nicely with the cpu
|
||||||
// if (pfds[1].revents & POLLIN) {
|
if (pfds[1].revents & POLLIN) {
|
||||||
// ssize_t read_response = read(m_pipefd[0], buf, 15);
|
ssize_t read_response = read(m_pipefd[0], buf, 15);
|
||||||
//
|
|
||||||
// // with linux automake, warnings are treated as errors by default
|
// with linux automake, warnings are treated as errors by default
|
||||||
// if (read_response < 0)
|
if (read_response < 0)
|
||||||
// {
|
{
|
||||||
// // todo: handle read response
|
// todo: handle read response
|
||||||
// }
|
}
|
||||||
//
|
|
||||||
// }
|
}
|
||||||
#else
|
#else
|
||||||
// retval = select(nfds,
|
retval = select(nfds,
|
||||||
// SELECT_TYPE_ARG234 &rfds,
|
SELECT_TYPE_ARG234 &rfds,
|
||||||
// SELECT_TYPE_ARG234 NULL,
|
SELECT_TYPE_ARG234 NULL,
|
||||||
// SELECT_TYPE_ARG234 NULL,
|
SELECT_TYPE_ARG234 NULL,
|
||||||
// SELECT_TYPE_ARG5 TIMEOUT_DELAY);
|
SELECT_TYPE_ARG5 TIMEOUT_DELAY);
|
||||||
// if (FD_SET(m_pipefd[0], &rfds)) {
|
if (FD_SET(m_pipefd[0], &rfds)) {
|
||||||
// read(m_pipefd[0], buf, 15);
|
read(m_pipefd[0], buf, 15);
|
||||||
// }
|
}
|
||||||
#endif
|
#endif
|
||||||
// remaining-=TIMEOUT_DELAY;
|
remaining-=TIMEOUT_DELAY;
|
||||||
// }
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
// we're no longer waiting for events
|
// we're no longer waiting for events
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue