luvit / luv

Bare libuv bindings for lua
Apache License 2.0
820 stars 185 forks source link

Using luv with awesome wm? #97

Closed ralphtheninja closed 9 years ago

ralphtheninja commented 9 years ago

Has anyone tried getting luv working with awesome window manager?

creationix commented 9 years ago

Not that I know of. Let us know what you find out.

imzyxwvu commented 9 years ago

This is how I achieved with IUPLua UIkit and LuaSocket copas:

first I created an iup.timer and set its interval to 20, at its tick, I called copas.step(0) which just equals with uv.run NOWAIT. Last start the WM's message loop.

imzyxwvu commented 9 years ago

though it's just a workaround (high-latency and costs a little more cpu time), it worked well at most situations.