diff options
| author | Dana Jansens <danakj@orodu.net> | 2008-03-01 00:04:28 -0500 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2008-03-01 00:04:28 -0500 |
| commit | dc2e6f6bf7143a56de360a393b33906735e63625 (patch) | |
| tree | 71cb301bd193a867107b14b39b4a39c2860e6945 /openbox/event.c | |
| parent | 985e7dadf9a3ebf4bd265d955c3198e96405e5d2 (diff) | |
Get hooks working
Diffstat (limited to 'openbox/event.c')
| -rw-r--r-- | openbox/event.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/openbox/event.c b/openbox/event.c index 4d1b6aba..142cf1f2 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -1884,11 +1884,16 @@ static void event_handle_user_input(ObClient *client, XEvent *e) if (!client || !frame_iconify_animating(client->frame)) mouse_event(client, e); } else - keyboard_event((focus_cycle_target ? focus_cycle_target : - (client ? client : focus_client)), e); + keyboard_event(event_target_client(client), e); } } +ObClient* event_target_client(ObClient *client) +{ + return (focus_cycle_target ? focus_cycle_target : + (client ? client : focus_client)); +} + static void focus_delay_dest(gpointer data) { g_free(data); |
