[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:
Geoffrey McRae
2021-01-27 11:11:53 +11:00
parent cfa9171465
commit f4c1927f56
6 changed files with 23 additions and 4 deletions

View File

@@ -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)