Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.pod
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ Create a clickable area starting from the current position, when the area is cli

Eg. I<%{A:reboot:} Click here to reboot %{A}>

The I<button> field is optional, it defaults to the left button, and it's a number ranging from 1 to 5 which maps to the left, middle, right, scroll up and scroll down movements. Your mileage may vary.
The I<button> field is optional, it defaults to the left button, and it's a number ranging from 1 to 9 which maps to the left, middle, right, scroll up, scroll down, scroll left, scroll right, 4th button (aka browser back), and 5th button (aka browser forward) movements (c.f. http://xahlee.info/linux/linux_x11_mouse_button_number.html). Your mileage may vary.

Nested clickable areas can trigger different commands.

Expand Down
4 changes: 2 additions & 2 deletions lemonbar.c
Original file line number Diff line number Diff line change
Expand Up @@ -563,8 +563,8 @@ parse (char *text)
// Define input area.
case 'A': {
button = XCB_BUTTON_INDEX_1;
// The range is 1-5
if (isdigit(*p) && (*p > '0' && *p < '6'))
// The range is 1-9
if (isdigit(*p) && (*p > '0' && *p <= '9'))
button = *p++ - '0';
if (!area_add(p, block_end, &p, cur_mon, pos_x, align, button))
return;
Expand Down