I tried the updated CVS version of the session manager but the bug still remains. I ran a qt-only app (pgcalc2), so this is not a kde-specific problem, although it might be related to qt.