summaryrefslogtreecommitdiff
path: root/accessx-status
diff options
context:
space:
mode:
Diffstat (limited to 'accessx-status')
-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 65d1a74b..3ef16a57 100644
--- a/accessx-status/applet.c
+++ b/accessx-status/applet.c
@@ -698,7 +698,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);