chiark / gitweb /
xscsize.c: Fix build failure if we had no Xrandr.
[xtoys] / xcatch.in
index 0f49a801d3a3a44c1c9517b56ab5b27f20811f9a..d6e51d13b48263b70ccb193d3db0df7cd4cbbefb 100644 (file)
--- a/xcatch.in
+++ b/xcatch.in
@@ -304,6 +304,7 @@ class Catcher (object):
     me._window.hide()
     XT.delreason()
     me._openp = False
+    return True
 
   @complain(True)
   def _ready(me, file, *_):
@@ -403,8 +404,8 @@ def main():
       name = '<stdin>'
       catcher.watch_file(stdin)
     else:
-      name = file
-      catcher.watch(open(opts.file, 'r'))
+      name = opts.file
+      catcher.watch_file(open(opts.file, 'r'))
   elif len(args) == 0:
     name = '<stdin>'
     catcher.watch_file(stdin)