Merge pull request #1683 from Airblader/bug-click-detection

Only detect clicks within the statusline width.
This commit is contained in:
Michael Stapelberg 2015-04-26 23:36:28 +02:00
commit b3e8facb59
1 changed files with 1 additions and 1 deletions

View File

@ -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;