Skip to content
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.

Commit

Permalink
Merge pull request #4469 from vincentbernat/fix/handler-xrandr
Browse files Browse the repository at this point in the history
handlers.c: send an "output" event on monitor configuration change
  • Loading branch information
Airblader committed Sep 10, 2021
2 parents 3d2a1ef + 381d7e6 commit 3686cef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion RELEASE-NOTES-next
Expand Up @@ -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:
Expand Down Expand Up @@ -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
2 changes: 2 additions & 0 deletions src/handlers.c
Expand Up @@ -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\"}");
}

/*
Expand Down

0 comments on commit 3686cef

Please sign in to comment.