[ Version ( since = "1.2" ) ]
public signal void monitor (Monitor monitor)
The monitor signal is fired once for each monitor that exists when a lock is started, and then whenever a new monitor is detected during the lock.
You generally want to call assign_window_to_monitor once in the handler for this signal with a newly created window and the given monitor.
This API does not directly tell you when a monitor is removed (GTK APIs can be used for that), however the window you send to assign_window_to_monitor will be automatically unmapped and dereferenced when its monitor is removed or the screen is unlocked.
| monitor |
the Monitor that exists or was added |