add doc comment on x11 opacity support
@@ -323,9 +323,13 @@ impl DoubleWindow {
unsafe { Fl_Double_Window_alpha(self.inner) as f64 / 255.0 }
}
- /// Set the window's opacity, u8::MAX is fully opaque.
+ /// Set the window's opacity,
+ /// Ranges from 0.0 to 1.0, where 1.0 is fully opaque and 0.0 is fully transparent.
/// This should be called on a shown window.
- /// On X11, opacity support depends on the window manager.
+ /// On X11, opacity support depends on the window manager and can be queried:
+ /// ```ignore
+ /// $ xprop -root _NET_SUPPORTED | grep -o _NET_WM_WINDOW_OPACITY
+ /// ```
pub fn set_opacity(&mut self, val: f64) {
assert!(!self.was_deleted());
assert!(self.shown());
