Skip to content

Commit

Permalink
used_sm: skip setup of maximized windows
Browse files Browse the repository at this point in the history
Previous to the change of recapturing windows, it was necessary to
reinstate the max dimensions of a maximized window.  As this happens on
LoadState now, there's no longer a need to that afterwards in the
used_sm checks.
  • Loading branch information
ThomasAdam committed Apr 28, 2020
1 parent 1a2cfcb commit 7d5737e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions fvwm/add_window.c
Original file line number Diff line number Diff line change
Expand Up @@ -2547,10 +2547,16 @@ FvwmWindow *AddWindow(
if (state_args.do_max)
{
SET_MAXIMIZED(fw, 1);
#if 0
/* TA: 2020-04028: No longer need to perform these
* operations, since the size is already constrained
* on recapture.
*/
constrain_size(
fw, NULL, &fw->g.max.width, &fw->g.max.height,
0, 0, CS_UPDATE_MAX_DEFECT);
get_relative_geometry(fw, &fw->g.frame, &fw->g.max);
#endif
}
else
{
Expand Down

0 comments on commit 7d5737e

Please sign in to comment.