mirror of
https://github.com/tiennm99/claude-code-usage-bubble.git
synced 2026-10-22 06:17:04 +00:00
A 1.5 s thread asks the platform whether the foreground window is a fullscreen window of another process and feeds the result through the visibility state machine. Windows keeps the proven evaluation with an own-process check in place of the bubble class check; Linux reads the EWMH active window state over X11; native Wayland and macOS report false.
28 lines
546 B
Rust
28 lines
546 B
Rust
//! Claude Code Usage Bubble on Tauri v2.
|
|
//!
|
|
//! The binary in `src/main.rs` only calls [`run`]. Every module is `pub` so
|
|
//! that items wired up incrementally do not trip `dead_code`.
|
|
|
|
pub mod badge;
|
|
pub mod bubble;
|
|
pub mod cli;
|
|
pub mod commands;
|
|
pub mod core;
|
|
pub mod creds;
|
|
pub mod diag;
|
|
pub mod fullscreen;
|
|
pub mod handoff;
|
|
pub mod menu;
|
|
pub mod net;
|
|
pub mod panel;
|
|
pub mod platform;
|
|
pub mod runtime;
|
|
pub mod scheduler;
|
|
pub mod tray;
|
|
pub mod usage;
|
|
|
|
/// Starts the application and blocks until it exits.
|
|
pub fn run() {
|
|
runtime::run();
|
|
}
|