pub fn set_monitor(window: &impl IsA<Window>, monitor: &Monitor)
Expand description

Set the output for the window to be placed on, or None to let the compositor choose. If the window is currently mapped, it will get remapped so the change can take effect.

Default is None

window

A layer surface.

monitor

The output this layer surface will be placed on (None to let the compositor decide).