Allow scroll wheel scrolling during DND
@nbenitez
Submitted by Nelson Benítez León Assigned to gtk..@..tk.org
Link to original bug (#576952)
Description
Please describe the problem: Hi, nautilus bug 434193 wants to be able to scroll the destination window/folder when DND'ing a file in nautilus. This is currently not possible because gtk+ grabs keyboard when DND (see bug 390312), but although gtk grabs the scroll event on dnd, there's no reason why it should not resend it to the widget that is the drag destination.
That is what my patch does, listens to scroll events on DND and resend the event to the drag destination widget. For some limitations this only works when the source and destinations widgets belongs to same application, although could be different windows, like in the nautilus case.
I think this is good enough as it fullfils the nautilus use case which happens to be the most common.
Steps to reproduce:
- Open two nautilus windows representing two folders, make sure second folder has enough files so the window has scrollbars.
- Drag some file from first window to second window.
- Now (without releasing the mouse button 1 and so dropping the file) use the mouse scrollwheel to scroll the second window content, so you can reach some unseen folder where to drop the file.
Actual results: Nothing happens, mousewheel scroll events are ignored.
Expected results: The nautilus window should receive the mouse wheel scroll events and thus scroll the content of the window.
Does this happen every time? yes
Other information:
Version: 2.16.x