summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/client.cc20
-rw-r--r--src/frame.cc1
2 files changed, 19 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
diff --git a/src/frame.cc b/src/frame.cc
index fed6132e..3d290bc9 100644
--- a/src/frame.cc
+++ b/src/frame.cc
@@ -103,6 +103,7 @@ void OBFrame::focus()
{
otk::OtkWidget::focus();
update();
+ _handle.update();
}