sharplispers / clx

a fork of crhodes' fork of danb's fork of the CLX library, an X11 client for Common Lisp
Other
116 stars 46 forks source link

XLIB/DPMS:DPMS-DISABLE sometimes results in an asynchronous LENGTH-ERROR #175

Open r13l opened 4 years ago

r13l commented 4 years ago

It is difficult to reproduce, but this code will often (not always) result in a LENGTH-ERROR:

        (xlib/dpms:dpms-enable *display*)
        (xlib/dpms:dpms-set-timeouts *display* 900 1200 1800)
        (xlib:display-finish-output *display*)
        (sb-ext:process-wait (sb-ext:run-program "/usr/bin/slock" nil)
        (dbus:with-open-bus (bus (dbus:system-server-addresses))
          (dbus:with-introspected-object (session bus *session-path* "org.freedesktop.login1")
            (session "org.freedesktop.login1.Session" "SetIdleHint" nil)))
        (xlib/dpms:dpms-disable *display*)