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

FvwmIconMan: populate manager geom via global screen #821

Merged
merged 1 commit into from
Jan 31, 2023
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
10 changes: 10 additions & 0 deletions modules/FvwmIconMan/x.c
Original file line number Diff line number Diff line change
Expand Up @@ -737,6 +737,16 @@ void X_init_manager (int man_id)
man->geometry.boxheight = height;
}
}

/* Populate the managed instance of this FvwmIconMan with the position of
* the global screen. This is potentially overriden if the user supplies
* their own ManagerGeometry string.
*/
FScreenGetScrRect(NULL, FSCREEN_GLOBAL, &man->managed_g.x, &man->managed_g.y,
&man->managed_g.width, &man->managed_g.height);
man->geometry.x = man->managed_g.x;
man->geometry.y = man->managed_g.y;

if (man->geometry_str) {
geometry_mask = FScreenParseGeometry(
man->geometry_str, &man->geometry.x, &man->geometry.y,
Expand Down