From 9a826d8c3d61150ddd72c621aab870d4bfe4594f Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 17 May 2010 20:10:06 -0400 Subject: fix focus when starting up, especially when replacing another instance of openbox adds a function event_reset_time() that forces event_time() to look for a new (future) timestamp --- openbox/event.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'openbox/event.h') diff --git a/openbox/event.h b/openbox/event.h index 8a2a4cbc..f0e2d397 100644 --- a/openbox/event.h +++ b/openbox/event.h @@ -68,6 +68,11 @@ gboolean event_time_after(guint32 t1, guint32 t2); is a time at or after it, but at or before any other events we will process */ Time event_time(void); + +/*! Force event_time() to skip the current timestamp and look for the next + one. */ +void event_reset_time(void); + /*! A time at which an event happened that caused this current event to be generated. This is a user-provided time and not to be trusted. Returns CurrentTime if there was no source time provided. -- cgit v1.2.3