wibox button: Fix the x/y position in button events
commit6a39fa46c128abe574804197646d47f2086824b5
authorUli Schlachter <psychon@znc.in>
Sun, 16 Dec 2012 17:17:03 +0000 (16 18:17 +0100)
committerUli Schlachter <psychon@znc.in>
Sun, 16 Dec 2012 17:17:03 +0000 (16 18:17 +0100)
tree13c5076102de5f3ee96d0f61fc1df958daefd923
parent7d1a96335248377f356c9b5793a85ad0c7494b2e
wibox button: Fix the x/y position in button events

The coordinates as used by X11 place (0, 0) at the top-left corner of the
window, including its border. However, this code wants the position relative to
the drawin's content, thus we also need to substract the border width.

Signed-off-by: Uli Schlachter <psychon@znc.in>
event.c