summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--openbox/event.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/openbox/event.c b/openbox/event.c
index b4bfd9ba..deb3bb47 100644
--- a/openbox/event.c
+++ b/openbox/event.c
@@ -521,7 +521,10 @@ static void event_handle_client(Client *client, XEvent *e)
/* if its not visible for other reasons, then don't mess
with it */
return;
- /*HOOKFIRECLIENT(requestactivate, client);XXX*/
+ if (client->shaded)
+ client_shade(client, FALSE);
+ client_focus(client);
+ stacking_raise(client);
}
break;
case PropertyNotify: