pub fn monitor(window: &impl IsA<Window>) -> Option<Monitor>
Available on crate feature v0_5 only.
Expand description

NOTE: To get which monitor the surface is actually on, use gdk_display_get_monitor_at_window().

window

A layer surface.

Returns

the monitor this surface will/has requested to be on, can be None.