A rudimentary system tray written in Rust
Thomas Dy 4d3ebf99d3 Allow setting background color | 8 years ago | |
---|---|---|
src | 8 years ago | |
.gitignore | 8 years ago | |
Cargo.lock | 8 years ago | |
Cargo.toml | 8 years ago | |
LICENSE | 8 years ago | |
README.md | 8 years ago |
A rudimentary system tray implemented in Rust.
This is more of an experiment than something you should use on a daily basis. I primarily wrote it to understand how the system tray mechanics work in X. This doesn't actually implement all of the system tray specification but it works for most of the programs I use.
rusttray only implements XEMBED style icons. The tray icons themselves perform the drawing and the tray only manages their sizes and positions. It does not draw icons by itself. In addition, balloon messages are not handled as well.
When starting,
_NET_SYSTEM_TRAY_S0
When exiting,
It is important that the tray waits for the reparenting back to root to actually finish. If the tray exits before the tray windows are reparented, it will cause those applications to crash.