From 664096b79bc9077bcc5c5518d5de6c5fb702eaec Mon Sep 17 00:00:00 2001 From: Fred Kiefer Date: Fri, 13 Dec 2013 15:03:09 +0000 Subject: [PATCH] * Source/x11/XGDragView.m (-_xWindowAcceptingDnDDescendentOf:...): Correct to work with kwin window decoration. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@37460 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 5 +++++ Source/x11/XGDragView.m | 8 ++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 680cd9c..3d1dced 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-12-13 Fred Kiefer + + * Source/x11/XGDragView.m (-_xWindowAcceptingDnDDescendentOf:...): + Correct to work with kwin window decoration. + 2013-12-13 Fred Kiefer * Tools/xpbs.m (-xProvideSelection:): Leave enough space for all diff --git a/Source/x11/XGDragView.m b/Source/x11/XGDragView.m index a6d3a04..8529977 100644 --- a/Source/x11/XGDragView.m +++ b/Source/x11/XGDragView.m @@ -367,8 +367,12 @@ static XGDragView *sharedDragView = nil; ignoring: ident underX: x Y: y]; - if (result != (Window)-1) - break; + // With window decoration there may be multiple windows + // at the same place. Try all of them. + if ((result != (Window)-1) && (result != (Window) None)) + { + break; + } } }