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

Fix issue with placement in per-monitor configuration. #1076

Merged
merged 1 commit into from
Oct 22, 2024
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: 5 additions & 3 deletions fvwm/add_window.c
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,12 @@ static void setup_window_structure(
FW_W(*pfw) = w;
if (savewin != NULL)
{
/* JS: 2024-10-19
* Set initial monitor to NULL, so current monitor can
* be used for placement and finding current desk.
*/
(*pfw)->m = NULL;
(*pfw)->Desk = savewin->Desk;
(*pfw)->m = savewin->m;
SET_SHADED(*pfw, IS_SHADED(savewin));
SET_USED_TITLE_DIR_FOR_SHADING(
*pfw, USED_TITLE_DIR_FOR_SHADING(savewin));
Expand Down Expand Up @@ -2333,8 +2337,6 @@ FvwmWindow *AddWindow(
{
rectangle attr_g;

update_fvwm_monitor(fw);

if (IS_SHADED(fw))
{
state_args.do_shade = 1;
Expand Down
Loading