The problem turns out to be gnome-screensaver opening a window with override-redirect set to True. We didn't check that and gave it focus but it shouldn't have go it (it's not a standard window).
The problem turns out to be gnome-screensaver opening a window with override-redirect set to True. We didn't check that and gave it focus but it shouldn't have go it (it's not a standard window).