I'm scripting so I have several windows open, and there is a feature that is quite bothering. I'll explain it with an example: say I want to copy a line of code. I use the mouse to select it but in doing so, the cursor ends slightly outside the window in use. I hit ctrl+C but as the mouse was in another window, nothing gets copied. After I try to paste it elsewhere and nothing happens, I have to go back and make sure the cursor stays in the first window while copying.
Is there a way to have an active window that does not depend on the position of the cursor? Maybe activating a window with a click?