Skip to content

Commit

Permalink
WIP: window iconification during recapture
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasAdam committed Sep 29, 2023
1 parent 018bd06 commit fbc7964
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion fvwm/session.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
/* ---------------------------- included header files ---------------------- */

#include "config.h"
#include "window_flags.h"

#include <stdio.h>
#ifdef HAVE_GETPWUID
Expand Down Expand Up @@ -1538,6 +1539,8 @@ MatchWinToSM(
{
matches[i].used = 1;

SET_ICONIFIED(ewin, 0);

if (!Restarting)
{
/* We don't want to restore too much state if
Expand Down Expand Up @@ -1609,7 +1612,9 @@ MatchWinToSM(
win_opts->initial_icon_x -= m->virtual_scr.Vx;
win_opts->initial_icon_y -= m->virtual_scr.Vy;
}
}
} else
win_opts->initial_state = NormalState;

ewin->m = matches[i].m;
ewin->g.normal.x = matches[i].x;
ewin->g.normal.y = matches[i].y;
Expand Down

0 comments on commit fbc7964

Please sign in to comment.