I can confirm this on xscreensaver 5.21 on Debian unstable with xfce as well. The problem is that the xscreensaver daemon is told to lock the screen only after the computer has woken up. Using xscreensaver -debug I can see that it receives the THROTTLE ClientMessage before the sleep, but the LOCK ClientMessage after the sleep.
/etc/acpi/sleep_suspend.sh calls /usr/share/acpi-support/screenblank (which runs "xscreensaver-command -throttle" then "xscreensaver-command -lock" in the background) just before running pm-suspend. Since the locking is done in background it opens up for a race with pm-suspend, which is faster nowadays. Simply removing the backgrounding "&"'s in /usr/share/acpi- support/screenblank solves the problem. The suspend process will now take a bit longer of course, but resuming is faster. ** Package changed: xscreensaver (Ubuntu) => acpi-support (Ubuntu) -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to xscreensaver in Ubuntu. https://bugs.launchpad.net/bugs/1054299 Title: screensaver doesn't hide screen during unsuspend Status in “acpi-support” package in Ubuntu: Confirmed Bug description: When coming out of suspend with a locked screen, the workspace is briefly visible, allowing anyone to see the contents. If sensitive or personal material is on the page, this can lead to data leaks. ProblemType: Bug DistroRelease: Ubuntu 12.10 Package: xscreensaver 5.15-2ubuntu1 ProcVersionSignature: Ubuntu 3.5.0-15.22-generic 3.5.4 Uname: Linux 3.5.0-15-generic x86_64 ApportVersion: 2.5.2-0ubuntu4 Architecture: amd64 Date: Fri Sep 21 14:19:33 2012 InstallationMedia: Xubuntu 12.10 "Quantal Quetzal" - Alpha amd64 (20120919) ProcEnviron: LANGUAGE=en_US:en TERM=xterm PATH=(custom, no user) LANG=en_US.UTF-8 SHELL=/bin/bash SourcePackage: xscreensaver UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/acpi-support/+bug/1054299/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp