feat: raised max windows to 32
This commit is contained in:
@@ -12,4 +12,4 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#define MONTAUK_BUILD_NUMBER 33
|
#define MONTAUK_BUILD_NUMBER 34
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
namespace WinServer {
|
namespace WinServer {
|
||||||
|
|
||||||
static constexpr int MaxWindows = 8;
|
static constexpr int MaxWindows = 32;
|
||||||
|
|
||||||
struct WindowSlot {
|
struct WindowSlot {
|
||||||
bool used;
|
bool used;
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
namespace gui {
|
namespace gui {
|
||||||
|
|
||||||
static constexpr int MAX_WINDOWS = 8;
|
static constexpr int MAX_WINDOWS = 32;
|
||||||
static constexpr int PANEL_HEIGHT = 32;
|
static constexpr int PANEL_HEIGHT = 32;
|
||||||
|
|
||||||
// External app discovered from 0:/apps/ manifest
|
// 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
|
// 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
|
// been destroyed yet by their owning process. Prevents the poll loop
|
||||||
// from re-creating them at the default position (visible flicker).
|
// 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_ids[MAX_CLOSING];
|
||||||
int closing_ext_count;
|
int closing_ext_count;
|
||||||
|
|
||||||
|
|||||||
@@ -449,8 +449,8 @@ static bool desktop_refresh_panel_state(DesktopState* ds, uint64_t now) {
|
|||||||
|
|
||||||
bool desktop_poll_external_windows(DesktopState* ds) {
|
bool desktop_poll_external_windows(DesktopState* ds) {
|
||||||
bool changed = false;
|
bool changed = false;
|
||||||
montauk::abi::WinInfo extWins[8];
|
montauk::abi::WinInfo extWins[MAX_WINDOWS];
|
||||||
int extCount = montauk::win_enumerate(extWins, 8);
|
int extCount = montauk::win_enumerate(extWins, MAX_WINDOWS);
|
||||||
|
|
||||||
// Check for new external windows and map them
|
// Check for new external windows and map them
|
||||||
for (int e = 0; e < extCount; e++) {
|
for (int e = 0; e < extCount; e++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user