summaryrefslogtreecommitdiff
path: root/openbox/event.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-05-10 04:39:06 +0000
committerDana Jansens <danakj@orodu.net>2007-05-10 04:39:06 +0000
commit220015e56e0b8ce1a00bd0f6e89bc25bb6e73cbf (patch)
treeb42dfde28bba09beb9ecf280a87feddd5bff80c8 /openbox/event.c
parentaa40be22970dbdd8bf0f133634eb1165bcb3ec02 (diff)
make configurerequest activate but net_restack_windows just restack.
fix bottomif, topif, opposite. fix debug output in event printing when there was no problem
Diffstat (limited to 'openbox/event.c')
-rw-r--r--openbox/event.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/openbox/event.c b/openbox/event.c
index 271114a2..6bf6e87b 100644
--- a/openbox/event.c
+++ b/openbox/event.c
@@ -1030,8 +1030,9 @@ static void event_handle_client(ObClient *client, XEvent *e)
sibling = WINDOW_AS_CLIENT(win);
}
+ /* activate it rather than just focus it */
stacking_restack_request(client, sibling,
- e->xconfigurerequest.detail);
+ e->xconfigurerequest.detail, TRUE);
}
break;
case UnmapNotify:
@@ -1236,12 +1237,14 @@ static void event_handle_client(ObClient *client, XEvent *e)
e->xclient.data.l[2] == TopIf ||
e->xclient.data.l[2] == Opposite)
{
+ /* just raise, don't activate */
stacking_restack_request(client, sibling,
- e->xclient.data.l[2]);
- }
- ob_debug_type(OB_DEBUG_APP_BUGS, "_NET_RESTACK_WINDOW sent "
- "for window %s with invalid detail 0d\n",
- client->title, e->xclient.data.l[2]);
+ e->xclient.data.l[2], FALSE);
+ } else
+ ob_debug_type(OB_DEBUG_APP_BUGS,
+ "_NET_RESTACK_WINDOW sent for window %s "
+ "with invalid detail %d\n",
+ client->title, e->xclient.data.l[2]);
}
}
break;