X-Git-Url: https://git.sur5r.net/?p=i3%2Fi3;a=blobdiff_plain;f=i3bar%2Fsrc%2Fxcb.c;h=11a017cf386224be3054596692a48ea1eb120b99;hp=45705c078428d3a09a3fbdbf9cfa7486a6536229;hb=5dda3bc2aec30e453a69b2b871379533680cda60;hpb=de866c2fead530f11b4f659b5150eab89132aaea diff --git a/i3bar/src/xcb.c b/i3bar/src/xcb.c index 45705c07..11a017cf 100644 --- a/i3bar/src/xcb.c +++ b/i3bar/src/xcb.c @@ -2,7 +2,7 @@ * vim:ts=4:sw=4:expandtab * * i3bar - an xcb-based status- and ws-bar for i3 - * © 2010-2012 Axel Wagner and contributors (see also: LICENSE) + * © 2010 Axel Wagner and contributors (see also: LICENSE) * * xcb.c: Communicating with X * @@ -420,7 +420,7 @@ void handle_button(xcb_button_press_event_t *event) { int offset = walk->rect.w - statusline_width - tray_width - logical_px(sb_hoff_px); x = original_x - offset; - if (x >= 0) { + if (x >= 0 && (size_t)x < statusline_width) { struct status_block *block; int sep_offset_remainder = 0;