Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

mikeandmore
Copy link
Contributor

If a monitor is disabled, its key in the rbtree should change so that it won't conflict with enabled monitors.

Searching for the next available monitor should skip disabled monitors too.

This PR fixed this issue.

{
if (fw->m == m)
continue;
if ((m->flags & MONITOR_DISABLED) != 0)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need for != 0.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

wa.height = fw->m->Desktops->ewmh_working_area.height;
}

fvwm_debug("move_resize", "monitor %s flag 0x%x wa %d+%d %dx%d\n", fw->m->si->name, fw->m->flags, wa.x, wa.y, wa.width, wa.height);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May as well drop this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

libs/FScreen.c Outdated
if (nr_monitors > 0 && strcmp(m->si->name, GLOBAL_SCREEN_NAME) == 0)
continue;

fvwm_debug("FindScreenOfXY", "monitor %s flag 0x%x\n",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Drop this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

Copy link
Member

@ThomasAdam ThomasAdam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @mikeandmore -- this all looks fine, just so minor changes before I merge this, please.

@ThomasAdam ThomasAdam self-assigned this Oct 12, 2025
@ThomasAdam ThomasAdam added the type:bug Something's broken! label Oct 12, 2025
@ThomasAdam ThomasAdam added this to FVWM3 Oct 12, 2025
@ThomasAdam ThomasAdam added this to the 1.1.4 milestone Oct 12, 2025
@github-project-automation github-project-automation bot moved this to PRs in FVWM3 Oct 12, 2025
@ThomasAdam
Copy link
Member

Thanks -- you just need to squash these two commits, please.

If a monitor is disabled, its key in the rbtree should change so that
it won't conflict with enabled monitors.

Searching for the next available monitor should skip disabled monitors
too.
@mikeandmore
Copy link
Contributor Author

@ThomasAdam squashed.

@ThomasAdam ThomasAdam merged commit 8e4f8d6 into fvwmorg:main Oct 13, 2025
8 checks passed
@github-project-automation github-project-automation bot moved this from PRs to Done in FVWM3 Oct 13, 2025
@ThomasAdam
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:bug Something's broken!

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants