Skip to content

Commit

Permalink
FvwmPager bugfix - Redraw pager grid if CurrentMonitor set.
Browse files Browse the repository at this point in the history
If current monitor is set, then desk changes would not redraw the
monitor locations. This fixes that by ensuring the desk grids are
redrawn in this case.
  • Loading branch information
somiaj committed Apr 11, 2024
1 parent 6f47375 commit 5dfc346
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions modules/FvwmPager/FvwmPager.c
Original file line number Diff line number Diff line change
Expand Up @@ -1039,7 +1039,15 @@ void list_new_desk(unsigned long *body)
mout != current_monitor->m &&
(monitor_mode == MONITOR_TRACKING_M ||
is_tracking_shared))))
{
/* Still need to update monitor location for other monitors. */
if (current_monitor != NULL && oldDesk != newDesk) {
MovePage(true);
DrawGrid(oldDesk - desk1, None, NULL);
DrawGrid(newDesk - desk1, None, NULL);
}
return;
}

/* Update the icon window to always track current desk. */
desk_i = fp->m->virtual_scr.CurrentDesk;
Expand Down

0 comments on commit 5dfc346

Please sign in to comment.