handlers.c: send an "output" event on monitor configuration change

When adding/removing a monitor, the outputs are likely to be modified.
Send an IPC event "output", like when there is a screen configuration
change.

Signed-off-by: Vincent Bernat <vincent@bernat.ch>
This commit is contained in:
Vincent Bernat 2021-08-01 18:11:57 +02:00
parent 3d2a1ef80a
commit f9e6d5dd7a
2 changed files with 3 additions and 0 deletions

View File

@ -62,3 +62,4 @@ option is enabled and only then sets a screenshot as background.
• ipc: return proper signed int for container positions: negative values were
returned as large 32 bits integers
• fix crash with "layout default"
• send an "output" event on XRandR 1.5 monitor configuration change

View File

@ -1074,6 +1074,8 @@ static void handle_configure_notify(xcb_configure_notify_event_t *event) {
return;
}
randr_query_outputs();
ipc_send_event("output", I3_IPC_EVENT_OUTPUT, "{\"change\":\"unspecified\"}");
}
/*