Skip to content

Commit

Permalink
update_fvwm_monitor: cosmetic change
Browse files Browse the repository at this point in the history
update_fvwm_monitor() used to be a macro, and as such, when that was
converted to update_fvwm_monitor(), some macro-specific styles remained.

This change cleans those up, there aren't any functional changes.
  • Loading branch information
ThomasAdam committed Sep 5, 2022
1 parent c876363 commit ad9356b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions fvwm/update.c
Expand Up @@ -667,18 +667,18 @@ Bool update_fvwm_monitor(FvwmWindow *fw)
rectangle g;
struct monitor *mnew;

get_unshaded_geometry((fw), &g);
get_unshaded_geometry(fw, &g);
mnew = FindScreenOfXY(g.x, g.y);

/* Avoid unnecessary updates. */
if (mnew == (fw)->m)
if (mnew == fw->m)
return False;
(fw)->m_prev = (fw)->m;
(fw)->m = mnew;
(fw)->Desk = mnew->virtual_scr.CurrentDesk;
EWMH_SetCurrentDesktop((fw)->m);
desk_add_fw((fw));
BroadcastConfig(M_CONFIGURE_WINDOW, (fw));
fw->m_prev = fw->m;
fw->m = mnew;
fw->Desk = mnew->virtual_scr.CurrentDesk;
EWMH_SetCurrentDesktop(fw->m);
desk_add_fw(fw);
BroadcastConfig(M_CONFIGURE_WINDOW, fw);

return True;
}
Expand Down

0 comments on commit ad9356b

Please sign in to comment.