Commit 6b9abfd9 authored by Brandon Invergo's avatar Brandon Invergo

Force the idle hook to be reset before running the exit hook

parent 789a4776
2019-07-09 Brandon Invergo <brandon@invergo.net> 2019-07-09 Brandon Invergo <brandon@invergo.net>
* guile/librekontrol/device.scm (configure-device): Force the idle
hooks to be cleared before running any exit hooks (just in case
the idle timer hits before the exit hooks have finished running)
* src/librekontrol-core.c (lk_scm_reset_exit_hook) * src/librekontrol-core.c (lk_scm_reset_exit_hook)
(lk_scm_reset_idle_hook): remove unnecessary/unused argument (lk_scm_reset_idle_hook): remove unnecessary/unused argument
......
...@@ -138,7 +138,7 @@ INPUT-NAME. Set up the device further through optional arguments: ...@@ -138,7 +138,7 @@ INPUT-NAME. Set up the device further through optional arguments:
(if exit-hooks (if exit-hooks
(for-each (lambda (hook) (for-each (lambda (hook)
(add-exit-hook! device hook)) (add-exit-hook! device hook))
exit-hooks)) (cons (lambda () (reset-idle-hook! device)) exit-hooks)))
(if init (if init
(for-each (lambda (init-proc) (for-each (lambda (init-proc)
init-proc) init-proc)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment