Fix border rendering (Thanks Paride Legovini)

This commit is contained in:
Michael Stapelberg 2011-08-05 01:03:56 +02:00
parent d4f32382c9
commit ec0d67410a
1 changed files with 4 additions and 4 deletions

View File

@ -400,10 +400,10 @@ void x_draw_decoration(Con *con) {
Rect *dr = &(con->deco_rect); Rect *dr = &(con->deco_rect);
xcb_segment_t segments[] = { xcb_segment_t segments[] = {
{ dr->x, dr->y, { dr->x, dr->y,
dr->x + dr->width, dr->y }, dr->x + dr->width - 1, dr->y },
{ dr->x, dr->y + dr->height - 1, { dr->x + 2, dr->y + dr->height - 1,
dr->x + dr->width, dr->y + dr->height - 1 } dr->x + dr->width - 3, dr->y + dr->height - 1 }
}; };
xcb_poly_segment(conn, parent->pixmap, parent->pm_gc, 2, segments); xcb_poly_segment(conn, parent->pixmap, parent->pm_gc, 2, segments);