-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Andrei Thorp wrote: > Excerpts from Uli Schlachter's message of Thu Jul 30 09:43:46 -0400 2009: >> Andrei Thorp wrote: >>> @@ -97,25 +113,33 @@ function show_wibox(s) >>> }) >>> runwibox[s].visible = true >>> >>> - f = function () >>> - startgeom = runwibox[s]:geometry() >>> - runwibox[s]:geometry({ >>> - y = startgeom.y - settings.move_amount, >>> - }) >>> - if runwibox[s]:geometry().y <= screen[s].geometry.y + >>> - screen[s].geometry.height - startgeom.height then >>> - set_default(mouse.screen) >>> - awful.hooks.timer.unregister(f) >>> - end >>> + if lib.hooks.timer.has(do_slide_up) then >>> + lib.hooks.timer.start(do_slide_up) >>> + else >>> + lib.hooks.timer.register(settings.move_speed, >>> + settings.move_speed*3, >>> + do_slide_up, >>> + "popup_run_prompt slide up") >>> end >>> - >>> - awful.hooks.timer.register(settings.move_speed, f) >> I like the old code better which unregisters the timer when it's no longer >> needed (or at least get rid of that lib.hooks.timer.has() call somehow). > > I'll probably register the timer elsewhere and just pause it right away > then. > > Fixes to Timers pushed.
Care to send the fix for review? *duck* - -- "Do you know that books smell like nutmeg or some spice from a foreign land?" -- Faber in Fahrenheit 451 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iQEcBAEBCAAGBQJKcdB2AAoJECLkKOvLj8sGkrIIAMNpb3VOjxQOjwjoKrGz3pzC kp0tL0t8K/hwL43UjtAKW4oekkkXwjdnkkfkfwRpAbBA/l8CcP2ZEhrAr7GSS7IJ Ae97UXAamReK6qudv7QGCUiyafdHP9/GD0F81QNGp4e/QUTQlsYgxaPpiSJGA1xr M8jJL9rIIGorQNiqxAQT7zjDyZQ6oqgYM3E+QSWRTpGpMYZOCU0yAJlKfrOdTg24 2/jSqezUAWvd8VPK+t8yJfvJwYjeJg3UDys5o0duAlG3NsBKhvpxlnLrsLU51AyT 8WGmfi/lWlKoeuHlLX3+k0yfALr5RhienCYnLO5fhr+DHfdOrogFmeuhoVc20Xg= =5Q4G -----END PGP SIGNATURE----- -- To unsubscribe, send mail to awesome-devel-unsubscr...@naquadah.org.