aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/Button.cc
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2004-01-08 22:07:58 (GMT)
committerfluxgen <fluxgen>2004-01-08 22:07:58 (GMT)
commitf25aab19562fe50c36fac186f2eb5bd3383e2173 (patch)
tree6b509dfbf50285a378122812a78f7c6a319b4b46 /src/FbTk/Button.cc
parent5643caa65520c7410a87e6daaa55e3b7adb005f8 (diff)
downloadfluxbox_pavel-f25aab19562fe50c36fac186f2eb5bd3383e2173.zip
fluxbox_pavel-f25aab19562fe50c36fac186f2eb5bd3383e2173.tar.bz2
cleaning
Diffstat (limited to 'src/FbTk/Button.cc')
-rw-r--r--src/FbTk/Button.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/FbTk/Button.cc b/src/FbTk/Button.cc
index 03e1386..f31e6b4 100644
--- a/src/FbTk/Button.cc
+++ b/src/FbTk/Button.cc
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: Button.cc,v 1.16 2003/10/13 23:43:11 fluxgen Exp $ 22// $Id: Button.cc,v 1.17 2004/01/08 22:05:12 fluxgen Exp $
23 23
24#include "Button.hh" 24#include "Button.hh"
25 25
@@ -126,8 +126,8 @@ void Button::buttonReleaseEvent(XButtonEvent &event) {
126 126
127 // finaly, execute command (this must be done last since this object might be deleted by the command) 127 // finaly, execute command (this must be done last since this object might be deleted by the command)
128 if (event.button > 0 && event.button <= 5 && 128 if (event.button > 0 && event.button <= 5 &&
129 event.x > 0 && event.x < width() && 129 event.x > 0 && event.x < static_cast<signed>(width()) &&
130 event.y > 0 && event.y < height() && 130 event.y > 0 && event.y < static_cast<signed>(height()) &&
131 m_onclick[event.button -1].get() != 0) 131 m_onclick[event.button -1].get() != 0)
132 m_onclick[event.button - 1]->execute(); 132 m_onclick[event.button - 1]->execute();
133 133