motif: restore BS_NORMAL correctly (#5135)

motif hints: restore BS_NORMAL correctly
This commit is contained in:
viri
2022-09-19 12:12:15 -06:00
committed by GitHub
parent 0ac5e248f2
commit 8252144cc3
5 changed files with 13 additions and 13 deletions

View File

@ -1187,9 +1187,9 @@ static bool handle_machine_change(Con *con, xcb_get_property_reply_t *prop) {
*/
static bool handle_motif_hints_change(Con *con, xcb_get_property_reply_t *prop) {
border_style_t motif_border_style;
window_update_motif_hints(con->window, prop, &motif_border_style);
bool has_mwm_hints = window_update_motif_hints(con->window, prop, &motif_border_style);
if (motif_border_style != con->border_style && motif_border_style != BS_NORMAL) {
if (has_mwm_hints && motif_border_style != con->border_style) {
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);