Skip to main content

default_position

Function default_position 

Source
pub fn default_position(
    _window_width_unused: i32,
    window_height: i32,
    monitor: MonitorBounds,
    inset_px: i32,
) -> BubblePosition
Expand description

Default first-open position: bottom-LEFT of the supplied monitor, inset by inset_px from both edges so the bubble doesn’t kiss the dock / taskbar. Matches the Screenplay-style design reference where the webcam bubble lives in the bottom-left corner of the screen by default (the user can drag it anywhere; the new position is persisted via bubble-position.txt).