Skip to content

Commit

Permalink
Merge pull request #247 from insom/master
Browse files Browse the repository at this point in the history
Skip mirrored outputs
  • Loading branch information
LemonBoy authored Apr 30, 2024
2 parents cbe3940 + 433444e commit 5420c86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lemonbar.c
Original file line number Diff line number Diff line change
Expand Up @@ -1054,7 +1054,7 @@ get_randr_monitors (void)
for (j = 0; j < num; j++) {
// Does I contain J ?

if (i != j && mons[j].width && !mons[j].name) {
if (i != j && mons[j].width) {
if (mons[j].x >= mons[i].x && mons[j].x + mons[j].width <= mons[i].x + mons[i].width &&
mons[j].y >= mons[i].y && mons[j].y + mons[j].height <= mons[i].y + mons[i].height) {
mons[j].width = 0;
Expand Down

0 comments on commit 5420c86

Please sign in to comment.