Skip to content

Commit

Permalink
MWMBorder: fix calculation
Browse files Browse the repository at this point in the history
Don't clobber the border relief if MWMBorder is used.
  • Loading branch information
ThomasAdam committed Nov 4, 2022
1 parent ad85082 commit 655866f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fvwm/borders.c
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ static void get_common_decorations(
}

/* MWMBorder style means thin 3d effects */
cd->relief_width = (HAS_MWM_BORDER(t) ? 2 : 2);
cd->relief_width = (HAS_MWM_BORDER(t) ? 1 : 2);

if (cd->texture_pixmap)
{
Expand Down Expand Up @@ -2978,7 +2978,7 @@ static void border_draw_decor_to_pixmap(
}
else
{
border = HAS_MWM_BORDER(fw) ? 2 : 2;
border = HAS_MWM_BORDER(fw) ? 1 : 2;
}
dest_g.width = w_g->width;
dest_g.height = w_g->height;
Expand Down

0 comments on commit 655866f

Please sign in to comment.