]> Pileus Git - ~andy/gtk/commitdiff
First fix: Move the window first, display it after (this removes one of
authorMiguel de Icaza <miguel@nuclecu.unam.mx>
Tue, 31 Mar 1998 03:16:09 +0000 (03:16 +0000)
committerArturo Espinosa <unammx@src.gnome.org>
Tue, 31 Mar 1998 03:16:09 +0000 (03:16 +0000)
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).

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gdk/gdkdnd.c
gdk/x11/gdkdnd-x11.c

index eb739a1414987a6854fa730f0c9ecb15f803a6f6..05f86dd642f33acc74464bcaf1f45b7f517baadb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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).
+
 Mon Mar 30 21:29:43 1998  Owen Taylor  <owt1@cornell.edu>
 
        * gtk/gtkentry.c: Add a "style_set" callback, so the
index eb739a1414987a6854fa730f0c9ecb15f803a6f6..05f86dd642f33acc74464bcaf1f45b7f517baadb 100644 (file)
@@ -1,3 +1,9 @@
+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).
+
 Mon Mar 30 21:29:43 1998  Owen Taylor  <owt1@cornell.edu>
 
        * gtk/gtkentry.c: Add a "style_set" callback, so the
index eb739a1414987a6854fa730f0c9ecb15f803a6f6..05f86dd642f33acc74464bcaf1f45b7f517baadb 100644 (file)
@@ -1,3 +1,9 @@
+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).
+
 Mon Mar 30 21:29:43 1998  Owen Taylor  <owt1@cornell.edu>
 
        * gtk/gtkentry.c: Add a "style_set" callback, so the
index eb739a1414987a6854fa730f0c9ecb15f803a6f6..05f86dd642f33acc74464bcaf1f45b7f517baadb 100644 (file)
@@ -1,3 +1,9 @@
+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).
+
 Mon Mar 30 21:29:43 1998  Owen Taylor  <owt1@cornell.edu>
 
        * gtk/gtkentry.c: Add a "style_set" callback, so the
index eb739a1414987a6854fa730f0c9ecb15f803a6f6..05f86dd642f33acc74464bcaf1f45b7f517baadb 100644 (file)
@@ -1,3 +1,9 @@
+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).
+
 Mon Mar 30 21:29:43 1998  Owen Taylor  <owt1@cornell.edu>
 
        * gtk/gtkentry.c: Add a "style_set" callback, so the
index eb739a1414987a6854fa730f0c9ecb15f803a6f6..05f86dd642f33acc74464bcaf1f45b7f517baadb 100644 (file)
@@ -1,3 +1,9 @@
+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).
+
 Mon Mar 30 21:29:43 1998  Owen Taylor  <owt1@cornell.edu>
 
        * gtk/gtkentry.c: Add a "style_set" callback, so the
index eb739a1414987a6854fa730f0c9ecb15f803a6f6..05f86dd642f33acc74464bcaf1f45b7f517baadb 100644 (file)
@@ -1,3 +1,9 @@
+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).
+
 Mon Mar 30 21:29:43 1998  Owen Taylor  <owt1@cornell.edu>
 
        * gtk/gtkentry.c: Add a "style_set" callback, so the
index be84e6dbfc8adc5068edd62db89eb9795ac15747..064a6d3b477090148bed5a6e6c30734f7e4c6eab 100644 (file)
@@ -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)
     {
index be84e6dbfc8adc5068edd62db89eb9795ac15747..064a6d3b477090148bed5a6e6c30734f7e4c6eab 100644 (file)
@@ -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)
     {