aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/Button.cc
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-09-08 15:37:37 (GMT)
committerfluxgen <fluxgen>2003-09-08 15:37:37 (GMT)
commit8679fd20b1a8ddd2858922b3cd3d34d3b53dc065 (patch)
treeb4adb54af5dbfbdb88be0c39487efe7f97a18b6a /src/FbTk/Button.cc
parent4fc020f11d62443080e4465d08a367b9c5868af1 (diff)
downloadfluxbox-8679fd20b1a8ddd2858922b3cd3d34d3b53dc065.zip
fluxbox-8679fd20b1a8ddd2858922b3cd3d34d3b53dc065.tar.bz2
fixed minor bug
Diffstat (limited to 'src/FbTk/Button.cc')
-rw-r--r--src/FbTk/Button.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/FbTk/Button.cc b/src/FbTk/Button.cc
index ed1a920..5e3c0ec 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.12 2003/08/15 13:58:56 fluxgen Exp $ 22// $Id: Button.cc,v 1.13 2003/09/08 15:37:37 fluxgen Exp $
23 23
24#include "Button.hh" 24#include "Button.hh"
25 25
@@ -112,11 +112,16 @@ void Button::buttonReleaseEvent(XButtonEvent &event) {
112 XCopyArea(disp, m_foreground_pm, window(), m_gc, 0, 0, width(), height(), 0, 0); 112 XCopyArea(disp, m_foreground_pm, window(), m_gc, 0, 0, width(), height(), 0, 0);
113 } 113 }
114 114
115 FbWindow::updateTransparent();
116
117 // finaly, execute command (this must be done last since this object might be deleted by the command)
115 if (event.button > 0 && event.button <= 5 && 118 if (event.button > 0 && event.button <= 5 &&
119 event.x > 0 && event.x < width() &&
120 event.y > 0 && event.y < height() &&
116 m_onclick[event.button -1].get() != 0) 121 m_onclick[event.button -1].get() != 0)
117 m_onclick[event.button - 1]->execute(); 122 m_onclick[event.button - 1]->execute();
118 123
119 FbWindow::updateTransparent(); 124
120} 125}
121 126
122void Button::exposeEvent(XExposeEvent &event) { 127void Button::exposeEvent(XExposeEvent &event) {