From f9e6d5dd7a9d4c646d12dbcdb3ccb725319080e8 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sun, 1 Aug 2021 18:11:57 +0200 Subject: [PATCH 1/2] 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 --- RELEASE-NOTES-next | 1 + src/handlers.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/RELEASE-NOTES-next b/RELEASE-NOTES-next index ef8103dff..3c2c7c90a 100644 --- a/RELEASE-NOTES-next +++ b/RELEASE-NOTES-next @@ -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 diff --git a/src/handlers.c b/src/handlers.c index 60064392b..c5b09d7e5 100644 --- a/src/handlers.c +++ b/src/handlers.c @@ -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\"}"); } /* From 381d7e6a98964d58a6a744944677d8d416e31fee Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Fri, 10 Sep 2021 08:04:59 +0200 Subject: [PATCH 2/2] doc: fix version number in release notes --- RELEASE-NOTES-next | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RELEASE-NOTES-next b/RELEASE-NOTES-next index 3c2c7c90a..9b7f41ea9 100644 --- a/RELEASE-NOTES-next +++ b/RELEASE-NOTES-next @@ -3,7 +3,7 @@ │ Release notes for i3 v4.20 │ └──────────────────────────────┘ -This is i3 v4.19. This version is considered stable. All users of i3 are +This is i3 v4.20. This version is considered stable. All users of i3 are strongly encouraged to upgrade. Background/wallpaper workaround: