mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-15 11:58:12 +00:00
[client] ds: added new getFullscreen
operation
As the window manager may change our mode to full screen without our request we must ask the ds backend for the current state when we want to toggle the mode.
This commit is contained in:
@@ -556,6 +556,11 @@ void app_setFullscreen(bool fs)
|
||||
g_state.ds->setFullscreen(fs);
|
||||
}
|
||||
|
||||
bool app_getFullscreen(void)
|
||||
{
|
||||
return g_state.ds->getFullscreen();
|
||||
}
|
||||
|
||||
bool app_getProp(LG_DSProperty prop, void * ret)
|
||||
{
|
||||
return g_state.ds->getProp(prop, ret);
|
||||
|
@@ -30,8 +30,7 @@ Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
static void bind_fullscreen(int sc, void * opaque)
|
||||
{
|
||||
g_params.fullscreen = !g_params.fullscreen;
|
||||
app_setFullscreen(g_params.fullscreen);
|
||||
app_setFullscreen(!app_getFullscreen());
|
||||
}
|
||||
|
||||
static void bind_video(int sc, void * opaque)
|
||||
|
Reference in New Issue
Block a user