diff options
Diffstat (limited to 'examples/x11ex.nim')
-rwxr-xr-x | examples/x11ex.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/x11ex.nim b/examples/x11ex.nim index eb4ae9274..6c63d0a01 100755 --- a/examples/x11ex.nim +++ b/examples/x11ex.nim @@ -51,7 +51,7 @@ proc process_event = case int(xev.theType) of KeyPress: key = XLookupKeysym(cast[ptr TXKeyEvent](addr(xev)), 0) - if key != 0: + if key.int != 0: echo("keyboard event") of ButtonPressMask, PointerMotionMask: Echo("Mouse event") |