diff options
author | Miguel de Icaza <miguel@nuclecu.unam.mx> | 1998-03-31 03:16:09 +0000 |
---|---|---|
committer | Arturo Espinosa <unammx@src.gnome.org> | 1998-03-31 03:16:09 +0000 |
commit | 2be5abf4ed3b244c34feaf4134577f4a066e89bb (patch) | |
tree | 2c9b329e9fd03e33a6e71205a89c237b115809d1 /gdk/gdkdnd.c | |
parent | f59f2039c00f4fc2788cbb483ac1133710959dcf (diff) | |
download | gdk-pixbuf-2be5abf4ed3b244c34feaf4134577f4a066e89bb.tar.gz |
First fix: Move the window first, display it after (this removes one of
1998-03-30 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gdk/gdkdnd.c (gdk_dnd_display_drag_cursor): First fix: Move the
window first, display it after (this removes one of the annoying
flashing effects).
Diffstat (limited to 'gdk/gdkdnd.c')
-rw-r--r-- | gdk/gdkdnd.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/gdk/gdkdnd.c b/gdk/gdkdnd.c index be84e6dbf..064a6d3b4 100644 --- a/gdk/gdkdnd.c +++ b/gdk/gdkdnd.c @@ -82,6 +82,8 @@ void gdk_dnd_display_drag_cursor(gint x, gint y, gboolean drag_ok, gboolean change_made) { + int more_debug = 0; + if(!gdk_dnd.dnd_grabbed) return; @@ -104,7 +106,7 @@ gdk_dnd_display_drag_cursor(gint x, gint y, gboolean drag_ok, if(x == -1 && y == -1) /* We're supposed to find it out for ourselves */ XQueryPointer(gdk_display, gdk_root_window, &wtmp, &wtmp, &x, &y, &itmp, &itmp, &masktmp); - + if(drag_ok) { mypix = gdk_dnd.c->drag_pm_ok; @@ -120,10 +122,13 @@ gdk_dnd_display_drag_cursor(gint x, gint y, gboolean drag_ok, if(change_made) { gdk_window_hide(opix); - gdk_window_show(mypix); /* There ought to be a way to know if - a window is already mapped etc. */ } gdk_window_move(mypix, x - myhotspot->x, y - myhotspot->y); + if (change_made) + { + gdk_window_show(mypix); /* There ought to be a way to know if + a window is already mapped etc. */ + } } else if(change_made) { |