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

List:       kde-devel
Subject:    Re: I developed a workaround for Qt5.4 DND bug that KDE apps might need
From:       PCMan <pcman.tw () gmail ! com>
Date:       2016-01-21 4:28:02
Message-ID: CAAMR6=4Majhfe6xqOoM0pjCFjC1XAJAFH1BEJ689cAEO_61hcw () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On Thu, Jan 21, 2016 at 6:16 AM, Frank Reininghaus <frank78ac@googlemail.com
> wrote:

> Hi,
>
> 2016-01-16 14:35 GMT+01:00 PCMan:
> > On Sat, Jan 16, 2016 at 6:20 PM, Kevin Krammer wrote:
> >>
> >> Hi,
> >>
> >> On Saturday, 2016-01-16, 12:43:53, PCMan wrote:
> >>
> >> > Since DND is crucial for a modern desktop environment and it's an
> >> > upstream
> >> > bug, I believe that KDE is also affected.
> >> > Luckily I found some quick workarounds, so I'm gonna share it with
> you.
> >> >
> >> > https://github.com/lxde/pcmanfm-qt/pull/295/files
> >> >
> >> > I made it an independent C++ class which is licensed under LGPL, so it
> >> > can
> >> > easily be reused by other Qt projects.
> >> > Just add two lines in your main() and it will work automagically.
> >> >
> >> > The bug still exists in Qt 5.5 and it's not yet fixed in Qt upstream.
> >>
> >> Sorry, this may be a stupid question: is this a proper fix or more like
> a
> >> hack?
> >
> > It's a quick hack rather than a proper fix.
> > The pusepose of this hack is simple.
> > Make it work for the window period before the users get the latest Qt
> which
> > contain a proper fix.
> >
> >>
> >> If the former, has it been submitted upstream?
> >
> > There's a patch in the Qt bug tracker, but nobody tests it.
> > The bug is left there for quite some time.
> > Even if it's fixed, for distributions like Debian, it takes ages for the
> > users to get the update.
> > So it's good to have some workaround. :-)
>
> First of all, thanks for sharing the workaround! I'm not familiar with
> the X11 drag&drop stuff, so I cannot comment on it.
>
> You said that a patch is in the Qt bug tracker, but all I could find
> with a bit of searching is a link to this Chromium report, which has a
> patch:
>
> https://code.google.com/p/chromium/issues/detail?id=543940
>
> Is that the patch you mean? Do you know if it has been submitted for
> review to Qt? If not, do you think that you could make that happen
> (since you seem to know quite a bit about drag&drop) or help to make
> it happen?
>

Yes, that's the patch I referred to.
It's not attached to the original bug report, but the patch is mentioned in
the comments.
FYI: https://bugreports.qt.io/browse/QTBUG-47981
I know part of the XDND protocol, but I do not fully understand what that
patch tries to do and how it works.
It's a good idea to test that patch if I have more time later though.

Thank you.


>
> Thanks,
> Frank
>
> >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
> unsubscribe <<
>

[Attachment #5 (text/html)]

<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Jan 21, 2016 \
at 6:16 AM, Frank Reininghaus <span dir="ltr">&lt;<a \
href="mailto:frank78ac@googlemail.com" \
target="_blank">frank78ac@googlemail.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex">Hi,<br> <br>
2016-01-16 14:35 GMT+01:00 PCMan:<br>
<div><div class="h5">&gt; On Sat, Jan 16, 2016 at 6:20 PM, Kevin Krammer wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hi,<br>
&gt;&gt;<br>
&gt;&gt; On Saturday, 2016-01-16, 12:43:53, PCMan wrote:<br>
&gt;&gt;<br>
&gt;&gt; &gt; Since DND is crucial for a modern desktop environment and it&#39;s \
an<br> &gt;&gt; &gt; upstream<br>
&gt;&gt; &gt; bug, I believe that KDE is also affected.<br>
&gt;&gt; &gt; Luckily I found some quick workarounds, so I&#39;m gonna share it with \
you.<br> &gt;&gt; &gt;<br>
&gt;&gt; &gt; <a href="https://github.com/lxde/pcmanfm-qt/pull/295/files" \
rel="noreferrer" target="_blank">https://github.com/lxde/pcmanfm-qt/pull/295/files</a><br>
 &gt;&gt; &gt;<br>
&gt;&gt; &gt; I made it an independent C++ class which is licensed under LGPL, so \
it<br> &gt;&gt; &gt; can<br>
&gt;&gt; &gt; easily be reused by other Qt projects.<br>
&gt;&gt; &gt; Just add two lines in your main() and it will work automagically.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; The bug still exists in Qt 5.5 and it&#39;s not yet fixed in Qt \
upstream.<br> &gt;&gt;<br>
&gt;&gt; Sorry, this may be a stupid question: is this a proper fix or more like \
a<br> &gt;&gt; hack?<br>
&gt;<br>
&gt; It&#39;s a quick hack rather than a proper fix.<br>
&gt; The pusepose of this hack is simple.<br>
&gt; Make it work for the window period before the users get the latest Qt which<br>
&gt; contain a proper fix.<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; If the former, has it been submitted upstream?<br>
&gt;<br>
&gt; There&#39;s a patch in the Qt bug tracker, but nobody tests it.<br>
&gt; The bug is left there for quite some time.<br>
&gt; Even if it&#39;s fixed, for distributions like Debian, it takes ages for the<br>
&gt; users to get the update.<br>
&gt; So it&#39;s good to have some workaround. :-)<br>
<br>
</div></div>First of all, thanks for sharing the workaround! I&#39;m not familiar \
with<br> the X11 drag&amp;drop stuff, so I cannot comment on it.<br>
<br>
You said that a patch is in the Qt bug tracker, but all I could find<br>
with a bit of searching is a link to this Chromium report, which has a<br>
patch:<br>
<br>
<a href="https://code.google.com/p/chromium/issues/detail?id=543940" rel="noreferrer" \
target="_blank">https://code.google.com/p/chromium/issues/detail?id=543940</a><br> \
<br> Is that the patch you mean? Do you know if it has been submitted for<br>
review to Qt? If not, do you think that you could make that happen<br>
(since you seem to know quite a bit about drag&amp;drop) or help to make<br>
it happen?<br></blockquote><div><br></div><div>Yes, that&#39;s the patch I referred \
to.<br></div><div>It&#39;s not attached to the original bug report, but the patch is \
mentioned in the comments.<br>FYI: <a \
href="https://bugreports.qt.io/browse/QTBUG-47981">https://bugreports.qt.io/browse/QTBUG-47981</a><br></div><div>I \
know part of the XDND protocol, but I do not fully understand what that patch tries \
to do and how it works.<br></div><div>It&#39;s a good idea to test that patch if I \
have more time later though.<br></div><div></div><div><br></div><div>Thank \
you.<br></div><div>  </div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> <br>
Thanks,<br>
Frank<br>
<div class=""><div class="h5"><br>
&gt;&gt; Visit <a href="http://mail.kde.org/mailman/listinfo/kde-devel#unsub" \
rel="noreferrer" target="_blank">http://mail.kde.org/mailman/listinfo/kde-devel#unsub</a> \
to unsubscribe &lt;&lt;<br> </div></div></blockquote></div><br></div></div>


[Attachment #6 (text/plain)]


>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


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

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