fix(electrobun): enable stub page + deferred native resize for testing
This commit is contained in:
parent
449fa3dcae
commit
e5125e6e6e
1 changed files with 8 additions and 4 deletions
|
|
@ -203,7 +203,7 @@ relayClient.onStatus((machineId, status, error) => {
|
||||||
|
|
||||||
async function getMainViewUrl(): Promise<string> {
|
async function getMainViewUrl(): Promise<string> {
|
||||||
// TEMPORARY: load resize test stub via Vite dev server (keeps RPC bridge)
|
// TEMPORARY: load resize test stub via Vite dev server (keeps RPC bridge)
|
||||||
const RESIZE_TEST = false; // DISABLED — use normal app for now
|
const RESIZE_TEST = true; // STUB MODE — minimal page for resize testing
|
||||||
if (RESIZE_TEST) {
|
if (RESIZE_TEST) {
|
||||||
const testUrl = DEV_SERVER_URL + "/resize-test.html";
|
const testUrl = DEV_SERVER_URL + "/resize-test.html";
|
||||||
console.log(`[RESIZE_TEST] Loading stub via Vite: ${testUrl}`);
|
console.log(`[RESIZE_TEST] Loading stub via Vite: ${testUrl}`);
|
||||||
|
|
@ -244,9 +244,13 @@ mainWindow = new BrowserWindow({
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
// Native resize COMPLETELY DISABLED for stability testing
|
// Native resize via C shared library — deferred 3s for GTK widget realization
|
||||||
// TODO: re-enable after verifying the app starts without it
|
setTimeout(() => {
|
||||||
console.log("[native-resize] DISABLED — testing app startup stability");
|
try {
|
||||||
|
const { initNativeResize } = require("./native-resize.ts");
|
||||||
|
initNativeResize((mainWindow as any).ptr, 8);
|
||||||
|
} catch (e) { console.error("[native-resize] init failed:", e); }
|
||||||
|
}, 3000);
|
||||||
|
|
||||||
// Prevent GTK's false Ctrl+click detection from closing the window on initial load.
|
// Prevent GTK's false Ctrl+click detection from closing the window on initial load.
|
||||||
// WebKitGTK reports stale modifier state (0x14 = Ctrl+Alt) after SIGTERM of previous instance,
|
// WebKitGTK reports stale modifier state (0x14 = Ctrl+Alt) after SIGTERM of previous instance,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue