From 51a20070fd51c4ce4eca550fd458b7223bee662a Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Wed, 8 Jan 2014 03:21:58 -0600 Subject: Fix screen sometimes not being hidden on power management action or desktop switch Handle kdesktop_lock termination in a more sane manner by simply relaunching it if possible --- ksmserver/shutdown.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ksmserver/shutdown.cpp') diff --git a/ksmserver/shutdown.cpp b/ksmserver/shutdown.cpp index a463c37d2..537790407 100644 --- a/ksmserver/shutdown.cpp +++ b/ksmserver/shutdown.cpp @@ -237,7 +237,7 @@ void KSMServer::shutdownInternal( TDEApplication::ShutdownConfirm confirm, TQByteArray replyData; // Block here until lock is complete // If this is not done the desktop of the locked session will be shown after suspend/hibernate until the lock fully engages! - DCOPRef("kdesktop", "KScreensaverIface").call("lock()"); + kapp->dcopClient()->call("kdesktop", "KScreensaverIface", "lock()", TQCString(""), replyType, replyData); } TDERootSystemDevice* rootDevice = hwDevices->rootSystemDevice(); if (rootDevice) { -- cgit v1.2.3