Prevent Linux raising windows, disrupting your workflow
Found an option in Compiz manager -> General options -> Focus and raise behaviour
Changed the 'Focus prevention level' from "Low" to "Normal" and it seems to have worked
Read more: Link - [SOLVED] Prevent newly opened apps to steal the focus