summaryrefslogtreecommitdiffstats
path: root/src/kernel/qeventloop_x11_glib.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/qeventloop_x11_glib.cpp')
-rw-r--r--src/kernel/qeventloop_x11_glib.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/kernel/qeventloop_x11_glib.cpp b/src/kernel/qeventloop_x11_glib.cpp
index 695232c2e..529ea08b2 100644
--- a/src/kernel/qeventloop_x11_glib.cpp
+++ b/src/kernel/qeventloop_x11_glib.cpp
@@ -376,8 +376,7 @@ bool TQEventLoop::processX11Events()
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;
}
@@ -407,7 +406,7 @@ bool TQEventLoop::gsourcePrepare(GSource *gs, int * timeout)
// return the maximum time we can wait for an event.
static timeval zerotm;
timeval *tm = 0;
- if ( ! ( flags & 0x08 ) ) { // 0x08 == ExcludeTimers for X11 only
+ if ( ! ( flags & ExcludeTimers ) ) {
if (TQApplication::isGuiThread()) {
tm = qt_wait_timer(); // wait for TQt timers
if ( !canWait ) {
@@ -605,8 +604,7 @@ bool TQEventLoop::gsourceDispatch(GSource *gs) {
}
// activate timers
- if ( ! ( flags & 0x08 ) ) {
- // 0x08 == ExcludeTimers for X11 only
+ if ( ! ( flags & ExcludeTimers ) ) {
if (TQApplication::isGuiThread()) {
nevents += activateTimers();
}