Google Chrome stealing focus / repainting in xmonad

Update: It’s an issue with xmonad and OpenGL, not Chrome specifically. See this thread for more info. It affects things like Steam as well as Chrome

TL;DR; install xcompmgr and run xcompmgr -n & at startup to start a window compositor

Since updating to Ubuntu 14.04 / xmonad 0.11, I’ve had a strange issue where Google Chrome would appear to repaint itself, no matter which workspace I was on. I couldn’t interact with the window, but it would obscure what I was actually trying to work on.

It turns out, it’s a bug in Chrome. To fix it, launch chrome with the --disable-gpu flag. Here’s the relevant line from my config:

, ((mod4Mask .|. shiftMask   , xK_Return)     , spawn "google-chrome --disable-gpu")

June 03, 2014

Quick Fix