games: auto-size windows to available screen; dmenu shows Sys menu from any app

This commit is contained in:
Luxferre
2026-10-23 18:50:12 +03:00
parent 2a12f8bdb4
commit 313e137d87
9 changed files with 24 additions and 18 deletions
+6 -10
View File
@@ -1649,16 +1649,12 @@ open_builtin_menu(const char *menu_name, int keep_idx)
if (!cls[0] || strcmp(cls, "sys") == 0) {
menu_name = "sys";
} else if (strcmp(cls, "st") == 0 || strncmp(cls, "st-", 3) == 0) {
if (strstr(ttl, "nano"))
menu_name = "nano";
else
menu_name = "st";
} else {
hide_menu();
menu_mode = MODE_NONE;
snprintf(cmd, sizeof(cmd), "sxmo_appmenu.sh --fallback '%s' '%s'", cls, ttl);
spawn_detached_sh(cmd);
return;
/* launched from a terminal: also show the exact same Sys menu */
menu_name = "sys";
}
else {
/* launched from an app: show the exact same Sys menu as the desktop */
menu_name = "sys";
}
}