I have a dual screen setup. Sometimes my laptop is locked when I unplug it from the external monitor, then I move it somewhere else. Of course, I can't unlock it because the unlock dialog is displayed on the no-longer connected external monitor.

I have written a console script which unlocks my session, but a better workaround would be to force the unlock dialog to be on the laptop's display.

Once I'm unlocked, I have mapped a keyboard shortcut to a script which removes the dual display setup, which is very nice, but keyboard shortcuts don't work when the session is locked.

in case anyone is interested, below is the script (saved as 'unlockkde')
which unlock the session from a console.