Skip to content

Commit

Permalink
Capture: force NormalState despite current desk
Browse files Browse the repository at this point in the history
When FVWM restarts and captures windows, the window would only have been put
in the NormalState if the window's desk was different to the current desk.

This check doesn't need to happen any more, since the desks will likely almost
always be different when capturing windows (especially if per-monitor mode is
in use).

Fixes fvwmorg#97
  • Loading branch information
ThomasAdam authored and mikeandmore committed Nov 28, 2020
1 parent 4a59ac6 commit e27996d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions fvwm/add_window.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,7 @@ static void CaptureOneWindow(
{
win_opts.initial_state = NormalState;
win_opts.flags.is_iconified_by_parent = 0;
if (m->virtual_scr.CurrentDesk != fw->Desk)
{
SetMapStateProp(fw, NormalState);
}
SetMapStateProp(fw, NormalState);
}
data[0] = (unsigned long) fw->Desk;
XChangeProperty(
Expand Down

0 comments on commit e27996d

Please sign in to comment.