It is a problem to drag item from one window to another when they are overlapped. When we click in a window it immediately focused and upper window go behind of this. But I found that in Windows and Mac they immediately focused when press in blank space, When select an item it does not switch immediately. It switched after release mouse button.
So main idea like this:
- When click on blank space (lower window) then switch focus after press mouse button (not release)
- When click on an item (select something) then switch focus after release mouse button (hold switch focus until mouse button release)
I want to simulate this in Ubuntu. So need to replace mouse press and release behaviour. Means when mouse press it signal to Ubuntu that it release and vice versa. How to do this in Ubuntu?