diff options
Diffstat (limited to 'src/kernel/qeventloop_x11.cpp')
| -rw-r--r-- | src/kernel/qeventloop_x11.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/kernel/qeventloop_x11.cpp b/src/kernel/qeventloop_x11.cpp index 1ba3b21df..163f8d771 100644 --- a/src/kernel/qeventloop_x11.cpp +++ b/src/kernel/qeventloop_x11.cpp @@ -206,8 +206,7 @@ bool TQEventLoop::processEvents( ProcessEventsFlags flags ) TQApplication::sendPostedEvents(); - const uint exclude_all = ExcludeSocketNotifiers | 0x08; - // 0x08 == ExcludeTimers for X11 only + const uint exclude_all = ExcludeSocketNotifiers | ExcludeTimers; if ( nevents > 0 && ( flags & exclude_all ) == exclude_all && ( flags & WaitForMore ) ) { return TRUE; @@ -221,8 +220,8 @@ bool TQEventLoop::processEvents( ProcessEventsFlags flags ) // return the maximum time we can wait for an event. static timeval zerotm; timeval *tm = 0; - if ( ! ( flags & 0x08 ) ) { // 0x08 == ExcludeTimers for X11 only - tm = qt_wait_timer(); // wait for timer or X event + if ( ! ( flags & ExcludeTimers ) ) { + tm = qt_wait_timer(); // wait for TQt timers if ( !canWait ) { if ( !tm ) tm = &zerotm; @@ -391,8 +390,7 @@ bool TQEventLoop::processEvents( ProcessEventsFlags flags ) } // activate timers - if ( ! ( flags & 0x08 ) ) { - // 0x08 == ExcludeTimers for X11 only + if ( ! ( flags & ExcludeTimers ) ) { nevents += activateTimers(); } |
