changeset 1405:cf36481bbc8f

[gaim-migrate @ 1415] hm committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sat, 13 Jan 2001 08:53:23 +0000
parents 96e93119268d
children cabde2947ba4
files plugins/iconaway.c
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/iconaway.c	Sat Jan 13 08:49:15 2001 +0000
+++ b/plugins/iconaway.c	Sat Jan 13 08:53:23 2001 +0000
@@ -14,10 +14,11 @@
 #endif
 
 void iconify_windows(struct gaim_connection *gc, char *state, char *message, void *data) {
-	if (imaway)
-		XIconifyWindow(GDK_DISPLAY(),
-				GDK_WINDOW_XWINDOW(imaway->window),
-				((_XPrivDisplay)GDK_DISPLAY())->default_screen);
+	if (!gc->away)
+		return;
+	XIconifyWindow(GDK_DISPLAY(),
+			GDK_WINDOW_XWINDOW(imaway->window),
+			((_XPrivDisplay)GDK_DISPLAY())->default_screen);
 #ifdef USE_APPLET
 	applet_destroy_buddy();
 #else