feat: raised max windows to 32

This commit is contained in:
2026-07-18 10:34:46 +02:00
parent 796ed46d12
commit 3ac25b7abd
4 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -15,7 +15,7 @@
namespace gui {
static constexpr int MAX_WINDOWS = 8;
static constexpr int MAX_WINDOWS = 32;
static constexpr int PANEL_HEIGHT = 32;
// External app discovered from 0:/apps/ manifest
@@ -187,7 +187,7 @@ struct DesktopState {
// IDs of external windows we've sent a close event to but that haven't
// been destroyed yet by their owning process. Prevents the poll loop
// from re-creating them at the default position (visible flicker).
static constexpr int MAX_CLOSING = 8;
static constexpr int MAX_CLOSING = MAX_WINDOWS;
int closing_ext_ids[MAX_CLOSING];
int closing_ext_count;
+2 -2
View File
@@ -449,8 +449,8 @@ static bool desktop_refresh_panel_state(DesktopState* ds, uint64_t now) {
bool desktop_poll_external_windows(DesktopState* ds) {
bool changed = false;
montauk::abi::WinInfo extWins[8];
int extCount = montauk::win_enumerate(extWins, 8);
montauk::abi::WinInfo extWins[MAX_WINDOWS];
int extCount = montauk::win_enumerate(extWins, MAX_WINDOWS);
// Check for new external windows and map them
for (int e = 0; e < extCount; e++) {