summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-04-28 22:21:56 (GMT)
committerfluxgen <fluxgen>2003-04-28 22:21:56 (GMT)
commit14f7fc9b9d190d66aaf9dffb32bb3882ebd1a5de (patch)
treedb804cd6361e60aa4b6baa488d6d6df58cc32245 /src
parent3c3f80fb867d0496a37160f0422a9914eb438a9c (diff)
downloadfluxbox_lack-14f7fc9b9d190d66aaf9dffb32bb3882ebd1a5de.zip
fluxbox_lack-14f7fc9b9d190d66aaf9dffb32bb3882ebd1a5de.tar.bz2
init m_pressed
Diffstat (limited to 'src')
-rw-r--r--src/FbTk/Button.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/FbTk/Button.cc b/src/FbTk/Button.cc
index acf344b..a807592 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.5 2003/02/23 16:52:17 fluxgen Exp $ 22// $Id: Button.cc,v 1.6 2003/04/28 22:21:56 fluxgen Exp $
23 23
24#include "Button.hh" 24#include "Button.hh"
25 25
@@ -35,7 +35,8 @@ Button::Button(int screen_num, int x, int y,
35 ExposureMask | ButtonPressMask | ButtonReleaseMask), 35 ExposureMask | ButtonPressMask | ButtonReleaseMask),
36 m_foreground_pm(0), 36 m_foreground_pm(0),
37 m_pressed_pm(0), 37 m_pressed_pm(0),
38 m_gc(DefaultGC(FbTk::App::instance()->display(), screen_num)) { 38 m_gc(DefaultGC(FbTk::App::instance()->display(), screen_num)),
39 m_pressed(false) {
39 40
40 // add this to eventmanager 41 // add this to eventmanager
41 FbTk::EventManager::instance()->add(*this, m_win); 42 FbTk::EventManager::instance()->add(*this, m_win);
@@ -47,7 +48,8 @@ Button::Button(const FbWindow &parent, int x, int y,
47 ExposureMask | ButtonPressMask | ButtonReleaseMask), 48 ExposureMask | ButtonPressMask | ButtonReleaseMask),
48 m_foreground_pm(0), 49 m_foreground_pm(0),
49 m_pressed_pm(0), 50 m_pressed_pm(0),
50 m_gc(DefaultGC(FbTk::App::instance()->display(), m_win.screenNumber())) { 51 m_gc(DefaultGC(FbTk::App::instance()->display(), m_win.screenNumber())),
52 m_pressed(false) {
51 // add this to eventmanager 53 // add this to eventmanager
52 FbTk::EventManager::instance()->add(*this, m_win); 54 FbTk::EventManager::instance()->add(*this, m_win);
53} 55}