summaryrefslogtreecommitdiff
path: root/openbox/event.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbox/event.c')
-rw-r--r--openbox/event.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/openbox/event.c b/openbox/event.c
index 2c73289e..e4292cbb 100644
--- a/openbox/event.c
+++ b/openbox/event.c
@@ -33,7 +33,6 @@
#include "menuframe.h"
#include "keyboard.h"
#include "mouse.h"
-#include "hooks.h"
#include "focus.h"
#include "focus_cycle.h"
#include "moveresize.h"
@@ -743,11 +742,6 @@ static void event_process(const XEvent *ec, gpointer data)
e->type == MotionNotify)
event_handle_user_input(client, e);
- XFlush(obt_display);
-
- /* run all the hooks at once */
- hooks_run_queue();
-
/* if something happens and it's not from an XEvent, then we don't know
the time */
event_curtime = CurrentTime;
@@ -1916,16 +1910,11 @@ static void event_handle_user_input(ObClient *client, XEvent *e)
if (!client || !frame_iconify_animating(client->frame))
mouse_event(client, e);
} else
- keyboard_event(event_target_client(client), e);
+ keyboard_event((focus_cycle_target ? focus_cycle_target :
+ (client ? client : focus_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);