diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-12-27 08:33:57 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-12-27 08:33:57 +0000 |
| commit | 3a4f91b53700093f6f577c309a746ede44652e4f (patch) | |
| tree | cf1dbab380394ce98f2940eedbd5456e8ef85c85 /src/client.cc | |
| parent | 51f8b875b33be1db16e6167ca823acf23e450dd5 (diff) | |
enter/leave and focus events are working beautifully
Diffstat (limited to 'src/client.cc')
| -rw-r--r-- | src/client.cc | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/src/client.cc b/src/client.cc index df9ad8a6..38364432 100644 --- a/src/client.cc +++ b/src/client.cc @@ -882,8 +882,14 @@ void OBClient::unfocus() } -void OBClient::focusHandler(const XFocusChangeEvent &) +void OBClient::focusHandler(const XFocusChangeEvent &e) { +#ifdef DEBUG + printf("FocusIn for 0x%lx\n", e.window); +#endif // DEBUG + + OtkEventHandler::focusHandler(e); + frame->focus(); _focused = true; @@ -891,8 +897,14 @@ void OBClient::focusHandler(const XFocusChangeEvent &) } -void OBClient::unfocusHandler(const XFocusChangeEvent &) +void OBClient::unfocusHandler(const XFocusChangeEvent &e) { +#ifdef DEBUG + printf("FocusOut for 0x%lx\n", e.window); +#endif // DEBUG + + OtkEventHandler::unfocusHandler(e); + frame->unfocus(); _focused = false; } @@ -900,6 +912,10 @@ void OBClient::unfocusHandler(const XFocusChangeEvent &) void OBClient::configureRequestHandler(const XConfigureRequestEvent &e) { +#ifdef DEBUG + printf("ConfigureRequest for 0x%lx\n", e.window); +#endif // DEBUG + OtkEventHandler::configureRequestHandler(e); // XXX: if we are iconic (or shaded? (fvwm does that)) ignore the event |
