diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-05-09 22:53:11 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-05-09 22:53:11 +0000 |
| commit | d5eacc5642ad8f5611f7c946d734863bc8898513 (patch) | |
| tree | 38ba2c64fa2ce6ba82a1c4649b8ae83ff58b10bb /openbox/event.c | |
| parent | 380ddd2b9cd2ffd8d286855b0670e58a553b2b3d (diff) | |
add a client_activate function, use it for net_wm_active mesgs and for focus cycling.
Diffstat (limited to 'openbox/event.c')
| -rw-r--r-- | openbox/event.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/openbox/event.c b/openbox/event.c index 39dfca5c..2e2d5c0c 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -731,18 +731,7 @@ static void event_handle_client(Client *client, XEvent *e) client_close(client); } else if (msgtype == prop_atoms.net_active_window) { g_message("net_active_window for 0x%lx", client->window); - if (screen_showing_desktop) - screen_show_desktop(FALSE); - if (client->iconic) - client_iconify(client, FALSE, TRUE); - else if (!client->frame->visible) - /* if its not visible for other reasons, then don't mess - with it */ - break; - if (client->shaded) - client_shade(client, FALSE); - client_focus(client); - stacking_raise(client); + client_activate(client); } else if (msgtype == prop_atoms.net_wm_moveresize) { g_message("net_wm_moveresize for 0x%lx", client->window); if ((Atom)e->xclient.data.l[2] == |
