main: add ATL_FORCE_FULLSCREEN env

This commit is contained in:
Mis012
2024-03-21 21:11:26 +01:00
parent 6839f8b651
commit 49436ef172
2 changed files with 5 additions and 1 deletions

View File

@@ -6,4 +6,5 @@ The following environment variables are recognized by the main executable:
`ATL_DISABLE_WINDOW_DECORATIONS=` - if set, window decorations will be disabled;
this is useful for saving screen space on phone screens, as well as working around the fact that we currently don't account for the titlebar when passing screen size to apps
`ATL_UGLY_ENABLE_LOCATION=` - if set, apps will be able to get location data using the relevant android APIs. (TODO: use bubblewrap)
`UGLY_HACK_FOR_VR` - if set, EGL will use XWayland display on Wayland. This means the app won't be able to draw to it's window, but it will be able to use pbuffers which are not available on wayland.
`UGLY_HACK_FOR_VR` - if set, EGL will use XWayland display on Wayland. This means the app won't be able to draw to it's window, but it will be able to use pbuffers which are not available on wayland. (TODO: just recommend GDK_BACKEND=x11 if pbuffers are needed?)
`ATL_FORCE_FULLSCREEN` - if set, will fullscreen the app window on start; this is useful for saving screen space on phone screens, as well as making apps that can't handle arbitrary screen dimensions for some reason happier

View File

@@ -350,6 +350,9 @@ static void open(GtkApplication *app, GFile** files, gint nfiles, const gchar* h
if(getenv("ATL_DISABLE_WINDOW_DECORATIONS"))
gtk_window_set_decorated(GTK_WINDOW(window), 0);
if(getenv("ATL_FORCE_FULLSCREEN"))
gtk_window_fullscreen(GTK_WINDOW(window));
gtk_window_present(GTK_WINDOW(window));
// construct Application