diff options
Diffstat (limited to 'src/kernel/qeventloop_glib_p.h')
-rw-r--r-- | src/kernel/qeventloop_glib_p.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/kernel/qeventloop_glib_p.h b/src/kernel/qeventloop_glib_p.h index ef0e6ac..663f20e 100644 --- a/src/kernel/qeventloop_glib_p.h +++ b/src/kernel/qeventloop_glib_p.h @@ -86,6 +86,10 @@ class QEventLoopPrivate public: QEventLoopPrivate() { +#if defined(Q_WS_X11) + xfd = -1; + x_gPollFD.fd = -1; +#endif // Q_WS_X11 reset(); } @@ -106,9 +110,7 @@ public: #if defined(Q_WS_X11) int xfd; - - GPollFD x_gPollFD; - + GPollFD x_gPollFD; #endif // Q_WS_X11 int thread_pipe[2]; @@ -119,7 +121,7 @@ public: QPtrList<QSockNotGPollFD> sn_pending_list; // store flags for one iteration - uint pev_flags; + uint pev_flags; // My GSource GSource * gSource; |