X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=theme.cpp;fp=theme.cpp;h=8b2f6b6c612f101c01c7667cb1d996c71f8d3edb;hb=52c5033edb39aa71c2a979b4788b622dc44683af;hp=7240cd4c0f2ce3b7d4c2cb571f0b0c2891575a1b;hpb=f19abc8c6ab711a8de92f3c23d241c4c372a4469;p=nageru diff --git a/theme.cpp b/theme.cpp index 7240cd4..8b2f6b6 100644 --- a/theme.cpp +++ b/theme.cpp @@ -1458,6 +1458,7 @@ int Theme::set_theme_menu(lua_State *L) void Theme::theme_menu_entry_clicked(int lua_ref) { + unique_lock lock(m); lua_rawgeti(L, LUA_REGISTRYINDEX, lua_ref); if (lua_pcall(L, 0, 0, 0) != 0) { fprintf(stderr, "error running menu callback: %s\n", lua_tostring(L, -1));