aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--callbacks.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/callbacks.c b/callbacks.c
index 0058868..175f4a3 100644
--- a/callbacks.c
+++ b/callbacks.c
@@ -450,10 +450,15 @@ gboolean
configure_event_cb(GtkWidget* window, GdkEventConfigure* event) {
(void) window;
(void) event;
+ gchar *lastgeo = NULL;
+ lastgeo = g_strdup(uzbl.gui.geometry);
retrieve_geometry();
- /* TODO: Do we need this? */
- //send_event(GEOMETRY_CHANGED, uzbl.gui.geometry, NULL);
+
+ if(strcmp(lastgeo, uzbl.gui.geometry))
+ send_event(GEOMETRY_CHANGED, uzbl.gui.geometry, NULL);
+ g_free(lastgeo);
+
return FALSE;
}