From fbc79649a5940eaa8ac0c73c3f9ac58b8262932b Mon Sep 17 00:00:00 2001 From: Thomas Adam Date: Fri, 29 Sep 2023 22:15:40 +0100 Subject: [PATCH] WIP: window iconification during recapture --- fvwm/session.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/fvwm/session.c b/fvwm/session.c index edbf08e60..556432005 100644 --- a/fvwm/session.c +++ b/fvwm/session.c @@ -20,6 +20,7 @@ /* ---------------------------- included header files ---------------------- */ #include "config.h" +#include "window_flags.h" #include #ifdef HAVE_GETPWUID @@ -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 @@ -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;