summary refs log tree commit diff stats
path: root/examples/x11ex.nim
diff options
context:
space:
mode:
Diffstat (limited to 'examples/x11ex.nim')
-rwxr-xr-xexamples/x11ex.nim2
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")