From: Thomas Adam Date: Sun, 12 May 2013 16:49:23 +0000 (+0100) Subject: i3bar: Fix pixel offset calculation in dual-head X-Git-Tag: 4.6~39 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ed1d13b0a1c97a5c327a5aa82713e6636e1ffa06;p=i3%2Fi3 i3bar: Fix pixel offset calculation in dual-head When running i3bar on a dual-head display with workspaces enabled in i3bar's config, the second monitor wouldn't use a correct x position offset and would draw its label too close to the screen's edge. In comparison to the first monitor, this is inconsistent because that starts with a pixel offset of 1. --- diff --git a/i3bar/src/xcb.c b/i3bar/src/xcb.c index b09f63d2..981b0f5e 100644 --- a/i3bar/src/xcb.c +++ b/i3bar/src/xcb.c @@ -1715,7 +1715,7 @@ void draw_bars(bool unhide) { unhide = true; } - i = 0; + i = 1; } if (!mod_pressed) {