From ed1d13b0a1c97a5c327a5aa82713e6636e1ffa06 Mon Sep 17 00:00:00 2001 From: Thomas Adam Date: Sun, 12 May 2013 17:49:23 +0100 Subject: [PATCH] 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. --- i3bar/src/xcb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {