aboutsummaryrefslogtreecommitdiff
path: root/sway/desktop/output.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/desktop/output.c')
-rw-r--r--sway/desktop/output.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c
index 321e2a72..1e4474ce 100644
--- a/sway/desktop/output.c
+++ b/sway/desktop/output.c
@@ -798,6 +798,10 @@ void handle_new_output(struct wl_listener *listener, void *data) {
output->repaint_timer = wl_event_loop_add_timer(server->wl_event_loop,
output_repaint_timer_handler, output);
+ if (server->session_lock.lock) {
+ sway_session_lock_add_output(server->session_lock.lock, output);
+ }
+
struct output_config *oc = find_output_config(output);
apply_output_config(oc, output);
free_output_config(oc);