You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
main: add ATL_FORCE_FULLSCREEN env
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user