summaryrefslogtreecommitdiff
path: root/src/corelib/x11/gfx_x11.pas
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/x11/gfx_x11.pas')
-rw-r--r--src/corelib/x11/gfx_x11.pas2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/x11/gfx_x11.pas b/src/corelib/x11/gfx_x11.pas
index a010c298..1935ff57 100644
--- a/src/corelib/x11/gfx_x11.pas
+++ b/src/corelib/x11/gfx_x11.pas
@@ -619,7 +619,7 @@ begin
xfd := XConnectionNumber(display);
repeat
- if (atimeoutms > 0) and (XPending(display) <= 0) then
+ if (atimeoutms >= 0) and (XPending(display) <= 0) then
begin
// waiting some event for the given timeout