summaryrefslogtreecommitdiff
path: root/src/ui.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui.c')
-rw-r--r--src/ui.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui.c b/src/ui.c
index 4f01ef52..5b5a5d6d 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -87,7 +87,8 @@ filter_func (GdkXEvent *xevent,
return GDK_FILTER_REMOVE;
else
{
- ef->last_event_serial = ((XEvent*)xevent)->xany.serial;
+ if (ef)
+ ef->last_event_serial = ((XEvent*)xevent)->xany.serial;
return GDK_FILTER_CONTINUE;
}
}