From 2b0de2b3896c1a33ef6dcd85ad36207dfe3c75d7 Mon Sep 17 00:00:00 2001 From: Thomas Adam Date: Sun, 10 Nov 2024 00:48:29 +0000 Subject: [PATCH] add_window: force style lookup 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. --- fvwm/add_window.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fvwm/add_window.c b/fvwm/add_window.c index 7d005a2f6..8b70b7903 100644 --- a/fvwm/add_window.c +++ b/fvwm/add_window.c @@ -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;