]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Draw h-split indicator at the right position
authorMichael Stapelberg <michael@stapelberg.de>
Fri, 28 Sep 2012 17:46:50 +0000 (19:46 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Fri, 28 Sep 2012 17:46:50 +0000 (19:46 +0200)
fixes #817

src/x.c

diff --git a/src/x.c b/src/x.c
index 24fd0eac81d425b2f7db70d6954374338b5141cb..7cb28c1abc984a85ac7fc8ed152bd59299d0605d 100644 (file)
--- a/src/x.c
+++ b/src/x.c
@@ -446,7 +446,7 @@ void x_draw_decoration(Con *con) {
             xcb_change_gc(conn, con->pm_gc, XCB_GC_FOREGROUND, (uint32_t[]){ p->color->indicator });
             if (con_orientation(con->parent) == HORIZ)
                 xcb_poly_fill_rectangle(conn, con->pixmap, con->pm_gc, 1, (xcb_rectangle_t[]){
-                        { r->width + br.width + br.x, 0, r->width, r->height + br.height } });
+                        { r->width + br.width + br.x, br.y, r->width, r->height + br.height } });
             else
                 xcb_poly_fill_rectangle(conn, con->pixmap, con->pm_gc, 1, (xcb_rectangle_t[]){
                         { br.x, r->height + br.height + br.y, r->width - (2 * br.x), r->height } });