awesome/objects
Uli Schlachter e5120e1bec Hide globalconf.L
Everything that needs the lua_State should create a local variable like this:

  lua_State *L = globalconf_get_lua_State();

This ensures that the compiler warns if there are two variables with name "L" in
scope. The idea here is that it should become harder to accidentally use the
global lua state instead of the state of the current state.

While writing this commit, I found another place that gets its wrong: Reading
client.focus from a coroutine was broken, since it was returning the result on
the main thread instead of the current one.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2014-12-06 11:56:58 +01:00
..
button.c Clean up header includes 2014-03-30 20:07:48 +02:00
button.h Clean up header includes 2014-03-30 20:07:48 +02:00
client.c Hide globalconf.L 2014-12-06 11:56:58 +01:00
client.h Clean up header includes 2014-03-30 20:07:48 +02:00
drawable.c drawable/drawin: Pass both lua_State and stack index around 2014-12-06 10:46:45 +01:00
drawable.h drawable/drawin: Pass both lua_State and stack index around 2014-12-06 10:46:45 +01:00
drawin.c drawin: Use the correct lua_State for the stack index 2014-12-06 10:55:21 +01:00
drawin.h Clean up header includes 2014-03-30 20:07:48 +02:00
key.c Clean up header includes 2014-03-30 20:07:48 +02:00
key.h remove encoding=utf-8 from modelines 2011-09-11 17:34:09 +02:00
screen.c Hide globalconf.L 2014-12-06 11:56:58 +01:00
screen.h Clean up header includes 2014-03-30 20:07:48 +02:00
tag.c Hide globalconf.L 2014-12-06 11:56:58 +01:00
tag.h tag_client: Add explicit lua_State argument 2014-12-06 11:14:59 +01:00
timer.c Hide globalconf.L 2014-12-06 11:56:58 +01:00
timer.h remove encoding=utf-8 from modelines 2011-09-11 17:34:09 +02:00
window.c Fix some more dubious uses of globalconf.L 2014-12-06 11:07:20 +01:00
window.h Clean up header includes 2014-03-30 20:07:48 +02:00