Mercurial > pidgin
changeset 4529:f630a793b9d4
[gaim-migrate @ 4807]
Mouse clicks when visualization is turned on should no longer be crashing
gaim. Sorry.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Wed, 05 Feb 2003 08:10:37 +0000 |
parents | f8fec48f0fde |
children | cbdc0fc5c3c6 |
files | plugins/gestures/stroke-draw.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/gestures/stroke-draw.c Wed Feb 05 08:02:25 2003 +0000 +++ b/plugins/gestures/stroke-draw.c Wed Feb 05 08:10:37 2003 +0000 @@ -22,7 +22,7 @@ static void gstroke_invisible_window_init (GtkWidget *widget); /*FIXME: Maybe these should be put in a structure, and not static...*/ -static Display * gstroke_disp; +static Display * gstroke_disp = NULL; static Window gstroke_window; static GC gstroke_gc; static int mouse_button = 2; @@ -139,7 +139,7 @@ gdk_pointer_ungrab (event->button.time); timer_id = 0; - if (gstroke_draw_strokes()) { + if (gstroke_draw_strokes() && gstroke_disp != NULL) { /* get rid of the invisible stroke window */ XUnmapWindow (gstroke_disp, gstroke_window); XFlush (gstroke_disp);