From 0a874e41b6f30d3276a8ab6536a7c3f692ffed65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sun, 11 Sep 2016 12:54:14 +0200 Subject: Write more details when kdesktop lock fails to grab input devices MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- kdesktop/lock/lockprocess.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/kdesktop/lock/lockprocess.cc b/kdesktop/lock/lockprocess.cc index 5cf422500..0a7f86366 100644 --- a/kdesktop/lock/lockprocess.cc +++ b/kdesktop/lock/lockprocess.cc @@ -1214,6 +1214,9 @@ bool LockProcess::grabKeyboard() int rv = XGrabKeyboard( tqt_xdisplay(), TQApplication::desktop()->winId(), True, GrabModeAsync, GrabModeAsync, CurrentTime ); + if (rv != GrabSuccess) { + kdWarning(1204) << "LockProcess::grabKeyboard() failed: " << rv << endl; + } return (rv == GrabSuccess); } @@ -1237,6 +1240,9 @@ bool LockProcess::grabMouse() True, GRABEVENTS, GrabModeAsync, GrabModeAsync, None, cursorHandle, CurrentTime ); + if (rv != GrabSuccess) { + kdWarning(1204) << "LockProcess::grabMouse() failed: " << rv << endl; + } return (rv == GrabSuccess); } -- cgit v1.2.1