Skip to content

Commit

Permalink
add_window: force style lookup
Browse files Browse the repository at this point in the history
When a window is about to be mapped, for a style lookup on that window.

This fixes an issue seen where restored Chrome windows aren't having
their styles picked up properly.  This is most likely due to class-hints
not being set appropriately, but this lookup doesn't affect anything
else, so there's little harm in adding it.
  • Loading branch information
ThomasAdam committed Nov 10, 2024
1 parent 5c9b0ae commit 360b5bb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fvwm/add_window.c
Original file line number Diff line number Diff line change
Expand Up @@ -2355,6 +2355,9 @@ FvwmWindow *AddWindow(
/****** layer ******/
setup_layer(fw, &style);

/* Lookup the window style. */
lookup_style(fw, &style);

/****** window placement ******/
attr_g.x = wattr.x;
attr_g.y = wattr.y;
Expand Down

0 comments on commit 360b5bb

Please sign in to comment.