mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-06-28 11:32:22 +00:00
Live-measure WCO width in the renderer, drop the right rail below the titlebar band, and re-enable GPU compositing under WSLg when /dev/dxg is present.
11 lines
450 B
JavaScript
11 lines
450 B
JavaScript
// Pre-layout fallback for WCO right-edge reservation (--titlebar-tools-right).
|
|
// Live width comes from navigator.windowControlsOverlay in the renderer.
|
|
|
|
const OVERLAY_FALLBACK_WIDTH = 144
|
|
|
|
/** @param {{ isWindows?: boolean, isWsl?: boolean }} opts */
|
|
function nativeOverlayWidth({ isWindows = false, isWsl = false } = {}) {
|
|
return isWindows || isWsl ? OVERLAY_FALLBACK_WIDTH : 0
|
|
}
|
|
|
|
module.exports = { OVERLAY_FALLBACK_WIDTH, nativeOverlayWidth }
|