When one locks the screen under Windows, it is redirected to the same screen as in the login. Under Linux, a program is run that "captures" all the mouse and keyboard events. While xcreensaver does the job very nicely, the default one for gnome sometimes has a delay of several seconds between the exit of the screen saver animation and the lock of the screen (I haven't submitted such a bug yet, and I don't know if it is only in my machine or if it's a more generalized problem). Regardless of the nature of the problem, I was wondering if there is a cleaner, more robust way to lock the screen.
The implementation I was thinking of, would actually log the user out and take him back to the gdm screen. The programs being run as daemons could be kept running at a higher hierarchy level, and the gui programs could simply be paused? Also the current RAM memory could be dumped somewhere and later be recovered... Others could probably think of better implementations than I do.
Is a cleaner implementation necessary? Would it benefit the end user, or would it not be worth it?