I'll close this one as there doesn't seem to be a generic solution to this issue. Just for the record, when using KDE/Plasma, the focus stealing prevention option can help to mitigate behaviors as you observe. _Originally posted by @bootleg in https://github.com/bootleg/ret-sync/issues/18#issuecomment-446034175_ =========================== You only need Hook IDA SetForegroundWindow to solve the problem 