diff options
Diffstat (limited to 'callbacks.c')
-rw-r--r-- | callbacks.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/callbacks.c b/callbacks.c index 593fdac..0058868 100644 --- a/callbacks.c +++ b/callbacks.c @@ -452,11 +452,26 @@ configure_event_cb(GtkWidget* window, GdkEventConfigure* event) { (void) event; retrieve_geometry(); - send_event(GEOMETRY_CHANGED, uzbl.gui.geometry, NULL); + /* TODO: Do we need this? */ + //send_event(GEOMETRY_CHANGED, uzbl.gui.geometry, NULL); return FALSE; } gboolean +focus_cb(GtkWidget* window, GdkEventFocus* event, void *ud) { + (void) window; + (void) event; + (void) ud; + + if(event->in) + send_event(FOCUS_GAINED, "", NULL); + else + send_event(FOCUS_LOST, "", NULL); + + return TRUE; +} + +gboolean key_press_cb (GtkWidget* window, GdkEventKey* event) { (void) window; |