Mercurial > audlegacy
changeset 3447:00a8df8f8256 trunk
again the less gdk calls, the better
author | Tomasz Mon <desowin@gmail.com> |
---|---|
date | Fri, 07 Sep 2007 22:52:56 +0200 |
parents | 9049fae12a72 |
children | 24f190625644 |
files | src/audacious/dock.c |
diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/audacious/dock.c Fri Sep 07 22:41:32 2007 +0200 +++ b/src/audacious/dock.c Fri Sep 07 22:52:56 2007 +0200 @@ -463,16 +463,15 @@ dock_move_press(GList * window_list, GtkWindow * w, GdkEventButton * event, gboolean move_list) { - gint mx, my; DockedWindow *dwin; if (cfg.show_wm_decorations) return; gtk_window_present(w); - gdk_window_get_pointer(GTK_WIDGET(w)->window, &mx, &my, NULL); - gtk_object_set_data(GTK_OBJECT(w), "move_offset_x", GINT_TO_POINTER(mx)); - gtk_object_set_data(GTK_OBJECT(w), "move_offset_y", GINT_TO_POINTER(my)); + + gtk_object_set_data(GTK_OBJECT(w), "move_offset_x", GINT_TO_POINTER(event->x)); + gtk_object_set_data(GTK_OBJECT(w), "move_offset_y", GINT_TO_POINTER(event->y)); if (move_list) gtk_object_set_data(GTK_OBJECT(w), "docked_list", get_docked_list(NULL, window_list, w, 0, 0));