diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-12-04 08:30:32 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-12-04 08:30:32 +0000 |
| commit | 73f7a0bd69607663050f02acf121f40a739d9619 (patch) | |
| tree | f706096249fb715d092f93701f62570b8367ef8e /src/actions.cc | |
| parent | 559a0c67a7b26dd3cc88208db83fb4df6a031484 (diff) | |
enter/leave actions work!
Diffstat (limited to 'src/actions.cc')
| -rw-r--r-- | src/actions.cc | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/src/actions.cc b/src/actions.cc index 6043ad0e..ec70b5b4 100644 --- a/src/actions.cc +++ b/src/actions.cc @@ -13,7 +13,7 @@ namespace ob { const unsigned int OBActions::DOUBLECLICKDELAY = 300; OBActions::OBActions() - : _button(0), _enter_win(0) + : _button(0) { // XXX: load a configuration out of somewhere @@ -28,6 +28,8 @@ OBActions::~OBActions() void OBActions::buttonPressHandler(const XButtonEvent &e) { + OtkEventHandler::buttonPressHandler(e); + // XXX: run the PRESS guile hook printf("GUILE: PRESS: win %lx modifiers %u button %u time %lx\n", (long)e.window, e.state, e.button, e.time); @@ -40,6 +42,8 @@ void OBActions::buttonPressHandler(const XButtonEvent &e) void OBActions::buttonReleaseHandler(const XButtonEvent &e) { + OtkEventHandler::buttonReleaseHandler(e); + // XXX: run the RELEASE guile hook printf("GUILE: RELEASE: win %lx modifiers %u button %u time %lx\n", (long)e.window, e.state, e.button, e.time); @@ -82,24 +86,21 @@ void OBActions::buttonReleaseHandler(const XButtonEvent &e) } -void OBActions::enter(Window win, unsigned int modifiers) +void OBActions::enterHandler(const XCrossingEvent &e) { - _enter_win = win; - - (void)modifiers; + OtkEventHandler::enterHandler(e); + // XXX: run the ENTER guile hook - printf("GUILE: ENTER: win %lx modifiers %u\n", (long)win, modifiers); - + printf("GUILE: ENTER: win %lx modifiers %u\n", (long)e.window, e.state); } -void OBActions::leave(unsigned int modifiers) +void OBActions::leaveHandler(const XCrossingEvent &e) { - (void)modifiers; - // XXX: run the LEAVE guile hook - printf("GUILE: LEAVE: win %lx modifiers %u\n", (long)_enter_win, modifiers); + OtkEventHandler::leaveHandler(e); - _enter_win = 0; + // XXX: run the LEAVE guile hook + printf("GUILE: LEAVE: win %lx modifiers %u\n", (long)e.window, e.state); } |
