fix(overlay): correct Hyprland fullscreen overlay alignment on Linux (#107)

This commit is contained in:
2026-06-01 02:12:16 -07:00
committed by GitHub
parent f1e260e996
commit 76f99e6518
15 changed files with 501 additions and 23 deletions
+37
View File
@@ -9,6 +9,7 @@ import {
promoteVisibleStatsWindowAboveOverlay,
promoteStatsWindowLevel,
resolveStatsWindowOuterBoundsForContent,
scheduleStatsWindowPostShowReconciles,
showStatsNativeConfirmDialog,
shouldHideStatsWindowForInput,
} from './stats-window-runtime';
@@ -402,3 +403,39 @@ test('presentStatsWindow shows and focuses on non-macOS platforms', () => {
assert.deepEqual(calls, ['show', 'focus']);
});
test('scheduleStatsWindowPostShowReconciles retries placement after a reused hidden window is remapped', () => {
const calls: string[] = [];
scheduleStatsWindowPostShowReconciles(
() => {
calls.push('reconcile');
},
{
setTimeout: (callback, delayMs) => {
calls.push(`timer:${delayMs}`);
callback();
return {
unref: () => {
calls.push(`unref:${delayMs}`);
},
};
},
},
);
assert.deepEqual(calls, [
'timer:50',
'reconcile',
'unref:50',
'timer:150',
'reconcile',
'unref:150',
'timer:300',
'reconcile',
'unref:300',
'timer:600',
'reconcile',
'unref:600',
]);
});