aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormarkt <markt>2007-02-04 18:41:08 (GMT)
committermarkt <markt>2007-02-04 18:41:08 (GMT)
commit07a3b3939bbdfa084f91c07984fdc60c2696a213 (patch)
tree871f25beb412244486d47ba12baadcfeb1162648 /src
parente46f152ee5c41771521b8af4a3c5f6558acd16c1 (diff)
downloadfluxbox-07a3b3939bbdfa084f91c07984fdc60c2696a213.zip
fluxbox-07a3b3939bbdfa084f91c07984fdc60c2696a213.tar.bz2
clicking on the edge of a button didn't work
Diffstat (limited to 'src')
-rw-r--r--src/FbTk/Button.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/FbTk/Button.cc b/src/FbTk/Button.cc
index 8dba936..767ed47 100644
--- a/src/FbTk/Button.cc
+++ b/src/FbTk/Button.cc
@@ -118,8 +118,9 @@ void Button::buttonReleaseEvent(XButtonEvent &event) {
118 // hence the mark_if_deleted mechanism so that we can 118 // hence the mark_if_deleted mechanism so that we can
119 // update our state after the command 119 // update our state after the command
120 if (event.button > 0 && event.button <= 5 && 120 if (event.button > 0 && event.button <= 5 &&
121 event.x > 0 && event.x < static_cast<signed>(width()) && 121 // I'm not quite sure why we get events with e.g. y == height, but we do
122 event.y > 0 && event.y < static_cast<signed>(height()) && 122 event.x >= 0 && event.x <= static_cast<signed>(width()) &&
123 event.y >= 0 && event.y <= static_cast<signed>(height()) &&
123 m_onclick[event.button -1].get() != 0) 124 m_onclick[event.button -1].get() != 0)
124 m_onclick[event.button - 1]->execute(); 125 m_onclick[event.button - 1]->execute();
125 126