changeset 4134:3f1f84330007

one less gdk_window_get_pointer call
author Tomasz Mon <desowin@gmail.com>
date Sun, 30 Dec 2007 21:36:46 +0100
parents d34e16f45a29
children 07c1639b110b
files src/audacious/ui_main.c
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/ui_main.c	Sun Dec 30 20:41:23 2007 +0100
+++ b/src/audacious/ui_main.c	Sun Dec 30 21:36:46 2007 +0100
@@ -422,10 +422,9 @@
 
         mainwin_vis_set_type(cfg.vis_type);
     } else if (event->button == 3) {
-        gint x, y;
-        gdk_window_get_pointer(NULL, &x, &y, NULL);
         ui_manager_popup_menu_show(GTK_MENU(mainwin_visualization_menu),
-                                   x, y, 3, event->time);
+                                   event->x_root, event->y_root, 3,
+                                   event->time);
     }
     return TRUE;
 }