[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: Fwd: Re: Bug#29766: Drag and drop in Konqueror 2.2beta broken
From:       Bradley T Hughes <bhughes () trolltech ! com>
Date:       2001-08-01 7:46:27
[Download RAW message or body]

On Wednesday 01 August 2001 01:21, David Faure wrote:
> DnD and xinerama ... anyone ? (looks kwin related)

I actually had this bug reported to me once, and found that it's a bug in 
the Xinerama implementation.  The reason that it doesn't work with kwin is 
because the kwin frame is shaped (masked).  Xinerama unfortunately doesn't 
shaped windows into consideration when doing the TranslateCoordinates on 
any head that isn't the primary one.

> ----- Forwarded message from Balaji Ramani <balaji@spinnakernet.com>
> -----
>
> From: Balaji Ramani <balaji@spinnakernet.com>
> To: David Faure <david@mandrakesoft.com>
> Subject: Re: Bug#29766: Drag and drop in Konqueror 2.2beta broken
> Date: Tue, 31 Jul 2001 19:06:45 -0400
>
> Hi David,
>
> I have been looking into this problem.  Here is what I found.  I am
> running a simple DND test that comes with qt (examples/dragdrop). 
> Running kwin, it does not work on the second head with xinerama enabled.
>  Note that xinerama is only enabled for XFree86 and not for kwin.  I
> disabled all code in kwin (and kdelibs) that has xinerama support.  But
> running under twm, it works fine.  Digging deeper, it led me to the
> piece of code in qt.  The code is in src/kernel/qdnd_x11.cpp.  On line
> 1093, we have
>
>     if ( !XTranslateCoordinates( qt_xdisplay(), qt_xrootwin(),
> qt_xrootwin(), globalPos.x(), globalPos.y(),
>                                  &lx, &ly, &target) ) {
>
> Now, this function returns a valid target under twm and 0 under kwin,
> when I drag on to the second head.
>
> What I cannot understand is why a Xlib code should depend on what window
> manager is running?  I know very little about Xlib.  So, I was wondering
> if you could help me with this?
>
> Thanks,
> Balaji
>
> On Friday 27 July 2001 16:27 pm, you wrote:
> > On Thursday 26 July 2001 01:18, tosi@orku.net wrote:
> > > Package: konqueror
> > > Version: 2.2beta1 (using KDE 2.2.0 beta1)
> > > Severity: normal
> > > Installed from:    SuSE
> > > Compiler:          gcc version 2.95.3 20010315 (SuSE)
> > > OS:                Linux (i686) release 2.4.4-4GB
> > > OS/Compiler notes:
> > >
> > > When dragging files from one konqueror window to another, the files
> > > get dropped onto the desktop itself, not in the second konq window.
> > > The fact that I'm using xinerama may affect the result, but it's
> > > still a bug :-) The same happens when dragging hyperlinks from onw
> > > konq browser to another ( I get a "copy here.." popup menu)
> >
> > Yes, definitely looks like a xinerama bug. Better contact whoever did
> > the xinerama support. I maintain the dnd in konqueror, but this is
> > something else. Apparently the xinerama support was based on patch by
> > Balaji... Cc'ed.
>
> ----- End forwarded message -----

-- 
--
Bradley T. Hughes <bhughes@trolltech.com>
Trolltech AS - Waldemar Thranes gt. 98B N-0175 Oslo, Norway
Office: +47 21604892
Mobile: +47 92019781

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic