summaryrefslogtreecommitdiff
path: root/src/client.cc
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-01-06 04:57:42 +0000
committerDana Jansens <danakj@orodu.net>2003-01-06 04:57:42 +0000
commitcc39863363f6c424a1d5f3790ef182b52b69a53e (patch)
treee6d7ffda7d7a105d15285a14bd268d3549bb6bc4 /src/client.cc
parent043822f6b67f0b6cd1cf60eccb1294b13e8bf11a (diff)
handle maprequests after mapped correctly. thus making gaim happy again
Diffstat (limited to 'src/client.cc')
-rw-r--r--src/client.cc22
1 files changed, 6 insertions, 16 deletions
diff --git a/src/client.cc b/src/client.cc
index 01e9a56c..23de426a 100644
--- a/src/client.cc
+++ b/src/client.cc
@@ -1107,7 +1107,7 @@ void OBClient::unfocus()
void OBClient::focusHandler(const XFocusChangeEvent &e)
{
#ifdef DEBUG
- printf("FocusIn for 0x%lx\n", e.window);
+// printf("FocusIn for 0x%lx\n", e.window);
#endif // DEBUG
OtkEventHandler::focusHandler(e);
@@ -1122,7 +1122,7 @@ void OBClient::focusHandler(const XFocusChangeEvent &e)
void OBClient::unfocusHandler(const XFocusChangeEvent &e)
{
#ifdef DEBUG
- printf("FocusOut for 0x%lx\n", e.window);
+// printf("FocusOut for 0x%lx\n", e.window);
#endif // DEBUG
OtkEventHandler::unfocusHandler(e);
@@ -1236,7 +1236,10 @@ void OBClient::destroyHandler(const XDestroyWindowEvent &e)
void OBClient::reparentHandler(const XReparentEvent &e)
{
// this is when the client is first taken captive in the frame
- if (e.parent == frame->plate()) return;
+ if (e.parent == frame->plate()) {
+ printf("Ignored ReparentNotify for 0x%lx\n", e.window);
+ return;
+ }
#ifdef DEBUG
printf("ReparentNotify for 0x%lx\n", e.window);
@@ -1255,17 +1258,4 @@ void OBClient::reparentHandler(const XReparentEvent &e)
Openbox::instance->screen(_screen)->unmanageWindow(this);
}
-
-void OBClient::mapRequestHandler(const XMapRequestEvent &e)
-{
- printf("\nMAP REQUEST\n\n");
-
- otk::OtkEventHandler::mapRequestHandler(e);
-
- if (_shaded)
- shade(false);
- // XXX: uniconify the window
- focus();
-}
-
}