diff options
author | Graeme Geldenhuys <graemeg@gmail.com> | 2015-08-22 23:59:40 +0100 |
---|---|---|
committer | Graeme Geldenhuys <graemeg@gmail.com> | 2015-08-22 23:59:40 +0100 |
commit | e12ff50eb77258091f8a2c147437d3b8a1aba247 (patch) | |
tree | 396bb30fd92eca087795f094388728478d266689 /src/corelib/x11/fpg_x11.pas | |
parent | 184831a8019f72c50da37fbf30f6a6eab541bae2 (diff) | |
download | fpGUI-e12ff50eb77258091f8a2c147437d3b8a1aba247.tar.xz |
Bugfix for X11: Thread synchronize stops working if no mouse input
If you use threads with Sychronize() calls... if there was no user input
or mouse movement, then after a while the threads got paused. As soon as
you moved the mouse, then things started working again.
I did tests with three different applications, and I believe I got this
bug fixed now.
Diffstat (limited to 'src/corelib/x11/fpg_x11.pas')
-rw-r--r-- | src/corelib/x11/fpg_x11.pas | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/x11/fpg_x11.pas b/src/corelib/x11/fpg_x11.pas index f614bda1..3d28a873 100644 --- a/src/corelib/x11/fpg_x11.pas +++ b/src/corelib/x11/fpg_x11.pas @@ -1688,7 +1688,7 @@ begin OnIdle(self); fpFD_ZERO(rfds); fpFD_SET(xfd, rfds); - r := fpSelect(xfd + 1, @rfds, nil, nil, Min(atimeoutms, 50)); + r := fpSelect(xfd + 1, @rfds, nil, nil, 10); if r <> 0 then // We got a X event or the timeout happened XNextEvent(display, @ev) else |