mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-02 10:21:10 +02:00
plugins: use optional flag to handle background behavior of lua plugins
Old behavior is untouched, but Lua plugins which are using neutrino-lua APi can manage background behavior of their windows by themselves. This flag allows more flexibility.
This commit is contained in:
@@ -393,8 +393,14 @@ int CPlugins::startLuaPlugin(int number)
|
||||
#if 0
|
||||
frameBuffer->ClearFB();
|
||||
#endif
|
||||
videoDecoder->Pig(-1, -1, -1, -1);
|
||||
frameBuffer->paintBackground();
|
||||
std::string keep_bg_flag = "/tmp/.keep_background";
|
||||
if (!file_exists(keep_bg_flag))
|
||||
{
|
||||
videoDecoder->Pig(-1, -1, -1, -1);
|
||||
frameBuffer->paintBackground();
|
||||
}
|
||||
else
|
||||
remove(keep_bg_flag.c_str());
|
||||
|
||||
return plugin_list[number].menu_return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user