summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-02-21 17:07:38 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-02-26 22:06:12 +0900
commit5a9a4fdd1fa58d38fe9caf14f8db8cc9be11a780 (patch)
treee9e030fb8f8eed9f3b3c8530025c2aa2abb4b31b
parent1425b0d2dc68aea74478bc348eb44082ae7c71f1 (diff)
oops - still had printfs. remove.
-rw-r--r--src/lib/ecore_x/xlib/ecore_x_dnd.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/lib/ecore_x/xlib/ecore_x_dnd.c b/src/lib/ecore_x/xlib/ecore_x_dnd.c
index e25e93617b..d44dc4fc47 100644
--- a/src/lib/ecore_x/xlib/ecore_x_dnd.c
+++ b/src/lib/ecore_x/xlib/ecore_x_dnd.c
@@ -630,29 +630,20 @@ _ecore_x_dnd_drag(Ecore_X_Window root,
630 630
631 /* Attempt to find a DND-capable window under the cursor */ 631 /* Attempt to find a DND-capable window under the cursor */
632 skip = ecore_x_window_ignore_list(&num); 632 skip = ecore_x_window_ignore_list(&num);
633 int i;
634 for (i = 0; i < num; i++) printf("skip %x\n", skip[i]);
635// WARNING - this function is HEAVY. it goes to and from x a LOT walking the 633// WARNING - this function is HEAVY. it goes to and from x a LOT walking the
636// window tree - use the SHADOW version - makes a 1-off tree copy, then uses 634// window tree - use the SHADOW version - makes a 1-off tree copy, then uses
637// that instead. 635// that instead.
638// win = ecore_x_window_at_xy_with_skip_get(x, y, skip, num); 636// win = ecore_x_window_at_xy_with_skip_get(x, y, skip, num);
639 win = ecore_x_window_shadow_tree_at_xy_with_skip_get(root, x, y, skip, num); 637 win = ecore_x_window_shadow_tree_at_xy_with_skip_get(root, x, y, skip, num);
640 printf("win1 %x\n", win);
641
642// NOTE: This now uses the shadow version to find parent windows 638// NOTE: This now uses the shadow version to find parent windows
643// while ((win) && !(ecore_x_dnd_version_get(win))) 639// while ((win) && !(ecore_x_dnd_version_get(win)))
644// win = ecore_x_window_parent_get(win); 640// win = ecore_x_window_parent_get(win);
645 while ((win) && !(ecore_x_dnd_version_get(win))) 641 while ((win) && !(ecore_x_dnd_version_get(win)))
646 { 642 win = ecore_x_window_shadow_parent_get(root, win);
647 printf("win parent %x\n", win);
648 win = ecore_x_window_shadow_parent_get(root, win);
649 }
650 printf("win2 %x\n", win);
651 643
652 /* Send XdndLeave to current destination window if we have left it */ 644 /* Send XdndLeave to current destination window if we have left it */
653 if ((_source->dest) && (win != _source->dest)) 645 if ((_source->dest) && (win != _source->dest))
654 { 646 {
655 printf("leave...\n");
656 xev.xclient.window = _source->dest; 647 xev.xclient.window = _source->dest;
657 xev.xclient.message_type = ECORE_X_ATOM_XDND_LEAVE; 648 xev.xclient.message_type = ECORE_X_ATOM_XDND_LEAVE;
658 xev.xclient.data.l[0] = _source->win; 649 xev.xclient.data.l[0] = _source->win;
@@ -668,7 +659,6 @@ _ecore_x_dnd_drag(Ecore_X_Window root,
668 659
669 _source->version = MIN(ECORE_X_DND_VERSION, 660 _source->version = MIN(ECORE_X_DND_VERSION,
670 ecore_x_dnd_version_get(win)); 661 ecore_x_dnd_version_get(win));
671 printf("win %x == %x\n", win, _source->dest);
672 if (win != _source->dest) 662 if (win != _source->dest)
673 { 663 {
674 int i; 664 int i;