-
-
Notifications
You must be signed in to change notification settings - Fork 86
fix monitor position conflicts when a monitor is disabled #1235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
fvwm/move_resize.c
Outdated
| { | ||
| if (fw->m == m) | ||
| continue; | ||
| if ((m->flags & MONITOR_DISABLED) != 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need for != 0.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
fvwm/move_resize.c
Outdated
| 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); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Drop this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
There was a problem hiding this 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.
|
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.
4a55f66 to
2b0b5a2
Compare
|
@ThomasAdam squashed. |
|
Thanks! |
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.