summaryrefslogtreecommitdiffstats
path: root/src/kernel/qeventloop_x11_glib.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-06-11 13:39:33 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-06-13 10:41:50 +0900
commitd7d6cb215181eaa02e5aea89149fc2c6d702ddc5 (patch)
tree14841da7f4dd22cf5ea437b2d7b03beefd2567ff /src/kernel/qeventloop_x11_glib.cpp
parent5e1b31056073d2f8f72161970b5df5f81dac619a (diff)
downloadtqt-d7d6cb215181eaa02e5aea89149fc2c6d702ddc5.tar.gz
tqt-d7d6cb215181eaa02e5aea89149fc2c6d702ddc5.zip
Explicitly add 'ExcludeTimers' to 'ProcessEvent' enum
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 5e8114b6f0ce10965a69cab4a61ce369cbb21d21)
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();
}