[Linux] Inconsistent behaviour when window is out of focus

(#2961) Bug Open: Confirmed desktop ui

Thread