diff audacious/ui_fileinfo.c @ 1331:8e3f13cc95ff trunk

[svn] - Don't show popups if the pointer isn't even in the playlist window.
author nhjm449
date Mon, 26 Jun 2006 22:35:54 -0700
parents 78f239f65a35
children 981ffc1cc402
line wrap: on
line diff
--- a/audacious/ui_fileinfo.c	Mon Jun 26 21:28:56 2006 -0700
+++ b/audacious/ui_fileinfo.c	Mon Jun 26 22:35:54 2006 -0700
@@ -179,7 +179,9 @@
 	static gint prev_x = 0, prev_y = 0, ctr = 0;
 	gboolean skip = FALSE;
 
-	if (playlistwin_is_shaded() || playlistwin_list->pl_tooltips == FALSE)
+	if (playlistwin_is_shaded() || playlistwin_list->pl_tooltips == FALSE
+		|| gdk_window_at_pointer(NULL, NULL) != playlistwin->window
+		|| gdk_window_at_pointer(NULL, NULL) == NULL)
 	{
 		ctr = 0;
 		return TRUE;