Skip to content

Commit

Permalink
Skip mirrored outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
insom committed Apr 23, 2024
1 parent cbe3940 commit 0fc20c7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lemonbar.c
Original file line number Diff line number Diff line change
Expand Up @@ -993,8 +993,9 @@ get_randr_monitors (void)

oi_reply = xcb_randr_get_output_info_reply(c, xcb_randr_get_output_info(c, outputs[i], XCB_CURRENT_TIME), NULL);

// Output disconnected or not attached to any CRTC ?
if (!oi_reply || oi_reply->crtc == XCB_NONE || oi_reply->connection != XCB_RANDR_CONNECTION_CONNECTED) {
// Output disconnected, not attached to any CRTC or mirrored ?
if (!oi_reply || oi_reply->crtc == XCB_NONE || oi_reply->connection != XCB_RANDR_CONNECTION_CONNECTED
|| oi_reply->num_clones > 0) {
free(oi_reply);
continue;
}
Expand Down

0 comments on commit 0fc20c7

Please sign in to comment.