<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>388259</bug_id>
          
          <creation_ts>2017-12-26 22:09:24 +0000</creation_ts>
          <short_desc>Drag and drop across dolphin instances: cursor must be moved after modifier key is pressed for modifier key to take effect</short_desc>
          <delta_ts>2020-03-26 15:03:17 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Frameworks and Libraries</classification>
          <product>frameworks-kio</product>
          <component>general</component>
          <version>git master</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.kde.org/show_bug.cgi?id=404071</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>suse</reporter>
          <assigned_to name="David Faure">faure</assigned_to>
          <cc>akontsevich</cc>
    
    <cc>bugseforuns</cc>
    
    <cc>elvis.angelaccio</cc>
    
    <cc>gstengel</cc>
    
    <cc>hakan</cc>
    
    <cc>jonbien</cc>
    
    <cc>kdelibs-bugs-null</cc>
    
    <cc>nate</cc>
    
    <cc>notuxius</cc>
          
          <cf_commitlink>https://cgit.kde.org/dolphin.git/commit/?id=b96c48b44e6e81aefca46be97adcf000e363c512</cf_commitlink>
          <cf_versionfixedin>20.04.0 with Qt 5.15</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1718596</commentid>
    <comment_count>0</comment_count>
    <who name="">suse</who>
    <bug_when>2017-12-26 22:09:24 +0000</bug_when>
    <thetext>Moving files via drag and drop works works mostly fine when holding the SHIFT key. (Without SHIFT it&apos;s a copy operation instead.)

However, I figured out a case where it is not working.
1. Drag a files and move the mouse cursor to the destination.
2. Press the SHIFT key.
3. Release the mouse button without any(!) movement since pressing the SHIFT key.

Following these steps will perform a copy instead of a file movement.

Workaround:
Move the mouse at least one pixel after pressing the SHIFT key. Then the expected file-move-operation will perform.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1718625</commentid>
    <comment_count>1</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2017-12-27 01:16:30 +0000</bug_when>
    <thetext>Confirmed on both X11 and Wayland with Dolphin 17.12.x, 17.08.x, and 17.04.x.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1741679</commentid>
    <comment_count>2</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2018-03-29 19:24:29 +0000</bug_when>
    <thetext>*** Bug 391548 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1757336</commentid>
    <comment_count>3</comment_count>
    <who name="Alexander Mentyu">notuxius</who>
    <bug_when>2018-06-07 15:05:49 +0000</bug_when>
    <thetext>Copying if applied by default if cursor wasn&apos;t moved undex Xorg

Under Wayland there is a denied type coursor and context menu
Related - https://bugs.kde.org/show_bug.cgi?id=383794

Plasma: 5.12.5
Apps: 18.04.1
Frameworks: 5.46.0
Qt: 5.11.0
Kernel: 4.17.0-1-MANJARO
OS: Netrunner Rolling
Video: Intel 4400
Driver: xf86-video-intel 1:2.99.917+831+ge7bfc906-1
Mesa 3D: 18.1.1
Screen: 1600x900
Xorg-Server: 1.20
wayland-protocols 1.13-1
wayland 1.14.0-1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1836728</commentid>
    <comment_count>4</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2019-02-08 17:56:18 +0000</bug_when>
    <thetext>This menu comes from KIO; moving it there.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1836730</commentid>
    <comment_count>5</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2019-02-08 17:56:31 +0000</bug_when>
    <thetext>*** Bug 404071 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1837093</commentid>
    <comment_count>6</comment_count>
    <who name="Elvis Angelaccio">elvis.angelaccio</who>
    <bug_when>2019-02-10 16:07:21 +0000</bug_when>
    <thetext>(In reply to suse from comment #0)
&gt; Moving files via drag and drop works works mostly fine when holding the
&gt; SHIFT key. (Without SHIFT it&apos;s a copy operation instead.)
&gt; 
&gt; However, I figured out a case where it is not working.
&gt; 1. Drag a files and move the mouse cursor to the destination.
&gt; 2. Press the SHIFT key.
&gt; 3. Release the mouse button without any(!) movement since pressing the SHIFT
&gt; key.

Hmm, seems to work for me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1837155</commentid>
    <comment_count>7</comment_count>
    <who name="">suse</who>
    <bug_when>2019-02-10 23:01:36 +0000</bug_when>
    <thetext>(In reply to Elvis Angelaccio from comment #6)
&gt; Hmm, seems to work for me.

Re-tested with Dolphin 18.12.1 (plasma 5.14.5; Framewor 5.54.0: Qt 5.12.0)
and I&apos;m still able to reproduce.

I&apos;m using two instances of dolphin and do a drag an drop between those two.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1838428</commentid>
    <comment_count>8</comment_count>
    <who name="Elvis Angelaccio">elvis.angelaccio</who>
    <bug_when>2019-02-16 11:11:19 +0000</bug_when>
    <thetext>(In reply to suse from comment #7)
&gt; (In reply to Elvis Angelaccio from comment #6)
&gt; I&apos;m using two instances of dolphin and do a drag an drop between those two.

Ah, that&apos;s the key. I was able to reproduce using two different dolphin processes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1838633</commentid>
    <comment_count>9</comment_count>
    <who name="Elvis Angelaccio">elvis.angelaccio</who>
    <bug_when>2019-02-17 12:26:02 +0000</bug_when>
    <thetext>It seems this is a bug in Qt. For some reason the QDropEvent sets Qt::CopyAction rather than Qt::MoveAction as the drop action, when using two different processes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1838634</commentid>
    <comment_count>10</comment_count>
    <who name="Elvis Angelaccio">elvis.angelaccio</who>
    <bug_when>2019-02-17 12:33:50 +0000</bug_when>
    <thetext>(In reply to Elvis Angelaccio from comment #9)
&gt; It seems this is a bug in Qt

or maybe in the platform integration plugin.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1849890</commentid>
    <comment_count>11</comment_count>
    <who name="Elvis Angelaccio">elvis.angelaccio</who>
    <bug_when>2019-04-11 17:37:02 +0000</bug_when>
    <thetext>*** Bug 406364 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1903230</commentid>
    <comment_count>12</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2020-01-16 20:48:23 +0000</bug_when>
    <thetext>*** Bug 416357 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1903249</commentid>
    <comment_count>13</comment_count>
    <who name="Aleksey Kontsevich">akontsevich</who>
    <bug_when>2020-01-16 21:49:54 +0000</bug_when>
    <thetext>Any chance this will be fixed? Annoying - years passed with this bug while it is a standard file manager operation and strange it appears at all and exists for years.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1916410</commentid>
    <comment_count>14</comment_count>
    <who name="Elvis Angelaccio">elvis.angelaccio</who>
    <bug_when>2020-03-15 18:13:22 +0000</bug_when>
    <thetext>(In reply to Elvis Angelaccio from comment #9)
&gt; It seems this is a bug in Qt. For some reason the QDropEvent sets
&gt; Qt::CopyAction rather than Qt::MoveAction as the drop action, when using two
&gt; different processes.

I can&apos;t reproduce the bug anymore using Qt 5.15. I&apos;m going to assume this has been fixed in recent versions of Qt or the platform integration plugin.

If anyone can still reproduce it, what&apos;s your Qt and Plasma version?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1916445</commentid>
    <comment_count>15</comment_count>
    <who name="Aleksey Kontsevich">akontsevich</who>
    <bug_when>2020-03-15 21:40:36 +0000</bug_when>
    <thetext>&gt; I can&apos;t reproduce the bug anymore using Qt 5.15. I&apos;m going to assume this
&gt; has been fixed in recent versions of Qt or the platform integration plugin.
&gt; 
&gt; If anyone can still reproduce it, what&apos;s your Qt and Plasma version?

openSUSE currently has 5.14.1 version, Whil check when 5.15 be available.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1916453</commentid>
    <comment_count>16</comment_count>
    <who name="Patrick Silva">bugseforuns</who>
    <bug_when>2020-03-15 22:21:21 +0000</bug_when>
    <thetext>I&apos;m using Qt 5.15 beta on Arch Linux.
On Wayland all modifiers work as expected.
On X11 only shift works as expected. If I press crtrl+shift or ctrl then release the mouse button without any cursor movement, the dragged file is copied to destination.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1916455</commentid>
    <comment_count>17</comment_count>
    <who name="Patrick Silva">bugseforuns</who>
    <bug_when>2020-03-15 22:27:29 +0000</bug_when>
    <thetext>(In reply to Patrick Silva from comment #16)
&gt; On X11 only shift works as expected. If I press crtrl+shift or ctrl then
&gt; release the mouse button without any cursor movement, the dragged file is
&gt; copied to destination.

ope, I meant only ctrl (copy) modifier works as expected on X11.
Shift (move) and ctrl+shift (link) copy the file to destination.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1916460</commentid>
    <comment_count>18</comment_count>
    <who name="Aleksey Kontsevich">akontsevich</who>
    <bug_when>2020-03-16 02:24:11 +0000</bug_when>
    <thetext>&gt; Shift (move) and ctrl+shift (link) copy the file to destination.

Exactly!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1916565</commentid>
    <comment_count>19</comment_count>
    <who name="Patrick Silva">bugseforuns</who>
    <bug_when>2020-03-16 18:30:06 +0000</bug_when>
    <thetext>(In reply to Patrick Silva from comment #16)
&gt; I&apos;m using Qt 5.15 beta on Arch Linux.
&gt; On Wayland all modifiers work as expected.

Well, this is weird, but all modifiers stopped working as expected on Wayland after reboot/relogin. lol
Now ctrl and shift keys open the context menu and ctrl+shift copies the dragged file to destination.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1918148</commentid>
    <comment_count>20</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2020-03-25 15:37:12 +0000</bug_when>
    <thetext>This is partially fixed with Qt 5.15, and the remaining bits are fixed with https://phabricator.kde.org/D28017</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1918156</commentid>
    <comment_count>21</comment_count>
    <who name="Aleksey Kontsevich">akontsevich</who>
    <bug_when>2020-03-25 15:53:19 +0000</bug_when>
    <thetext>(In reply to Nate Graham from comment #20)
&gt; https://phabricator.kde.org/D28017

Were fixing this for 7 years????!!!! Just &quot;Great&quot;!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1918157</commentid>
    <comment_count>22</comment_count>
    <who name="Aleksey Kontsevich">akontsevich</who>
    <bug_when>2020-03-25 15:53:36 +0000</bug_when>
    <thetext>Thanks for the fix BTW! :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1918329</commentid>
    <comment_count>23</comment_count>
    <who name="Patrick Silva">bugseforuns</who>
    <bug_when>2020-03-26 15:03:17 +0000</bug_when>
    <thetext>Fixed on X11. :)
But it&apos;s still broken on Wayland. :(

dolphin 20.03.80 built from sources
Operating System: Arch Linux 
KDE Plasma Version: 5.18.3
KDE Frameworks Version: 5.68.0
Qt Version: 5.15.0 beta2</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>