From 3ffa88e54a8b610a78d4036922d2b71302cb37d3 Mon Sep 17 00:00:00 2001 From: yshui Date: Sat, 25 Jun 2016 15:35:36 -0400 Subject: [PATCH] Don't change border style if BS_NORMAL is requested in motif hints (#2386) Fixes #2385 --- src/handlers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/handlers.c b/src/handlers.c index 991761fc..68fba0c4 100644 --- a/src/handlers.c +++ b/src/handlers.c @@ -1193,7 +1193,7 @@ static bool handle_motif_hints_change(void *data, xcb_connection_t *conn, uint8_ border_style_t motif_border_style; window_update_motif_hints(con->window, prop, &motif_border_style); - if (motif_border_style != con->border_style) { + if (motif_border_style != con->border_style && motif_border_style != BS_NORMAL) { DLOG("Update border style of con %p to %d\n", con, motif_border_style); con_set_border_style(con, motif_border_style, con->current_border_width);