Skip to content

Commit

Permalink
Don't gate clone check on monitor name being NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
insom committed Apr 29, 2024
1 parent cbe3940 commit 433444e
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 433444e

Please sign in to comment.