summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--accessx-status/applet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/accessx-status/applet.c b/accessx-status/applet.c
index ed6117e0..9200fbaa 100644
--- a/accessx-status/applet.c
+++ b/accessx-status/applet.c
@@ -695,7 +695,7 @@ static void accessx_status_applet_update(AccessxStatusApplet* sapplet, AccessxSt
g_object_unref(pixbuf);
}
- if (notify_type & ACCESSX_STATUS_MOUSEKEYS)
+ if ((notify_type & ACCESSX_STATUS_MOUSEKEYS) && (event != NULL))
{
GdkPixbuf* pixbuf = accessx_status_applet_mousekeys_image(sapplet, &event->state);
gtk_image_set_from_pixbuf(GTK_IMAGE(sapplet->mousefoo), pixbuf);