Skip to content
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

placement: don't clobber monitor if global #465

Merged
merged 1 commit into from
Mar 18, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion fvwm/placement.c
Original file line number Diff line number Diff line change
Expand Up @@ -1698,7 +1698,13 @@ static int __place_window(
*
* This is necessary for StartsOnScreen
*/
fw->m = monitor_resolve_name(arg.name);
/* But only do this if the requested screen IS NOT "g"
* for global, as this would assign the monitor to the
* "_global" screen, which is a faked monitor for the
* purposes of an older API.
*/
if (strcmp(arg.name, "g") != 0)
fw->m = monitor_resolve_name(arg.name);
free(e);
}
else
Expand Down