Split View: Right click actions always affects selected file in active pane
When using Split View and you have a file selected in the active pane (File 1), then you right click on a file in the inactive pane and choose an action (File 2), the action is performed on the selected file in the active pane (File 1), not the file being right clicked in the inactive pane (File 2).
Here are some sample files to try it on: splittest.tar.gz (although if you choose something safe like Properties or Rename it can be done on personal files)
Steps to reproduce:
- Select
View
>Split View
- Left click on a file in one panel
- Right click on a file in the opposite panel
- Perform any action (Rename, Properties, Move to Trash, etc)
This can cause unintended files to be copied, pasted into folders, or deleted.
The same problem happens with:
- Middle click on Folders (Middle click always opens the folder selected in the active pane when folder in the inactive pane is middle clicked)
- File and Folder creation (Focus one pane, use an empty space in inactive pane to right click and create a file or folder, it is created in the active pane)
- Zoom In and Out using right click
It does not happen with right click and Arrange Items though.
In this picture, I selected (left clicked) the .deb
package in the left pane, then right clicked on the .png
image in the right pane and it offers the action of the file selected in the left pane (to with the package installer):
Thunar 4.18.3
Related to #945 (closed)