diff options
author | monsta <[email protected]> | 2016-08-13 22:07:29 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2016-08-15 01:48:22 +0300 |
commit | 9c4a86e162bcfe2663c31c32123b5039a96fb226 (patch) | |
tree | 0effb210c6a60e84f2163d22a0cce825156b617c | |
parent | 34c21782b01eb770a0081dd469c73c205ee72297 (diff) | |
download | mate-applets-9c4a86e162bcfe2663c31c32123b5039a96fb226.tar.bz2 mate-applets-9c4a86e162bcfe2663c31c32123b5039a96fb226.tar.xz |
accessx-status: fix possible crash when updating layout
-rw-r--r-- | accessx-status/applet.c | 2 |
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); |