summaryrefslogtreecommitdiffstats
path: root/kdesktop/lock
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2016-09-11 12:54:14 +0200
committerSlávek Banko <[email protected]>2016-09-11 12:54:14 +0200
commit0a874e41b6f30d3276a8ab6536a7c3f692ffed65 (patch)
treea8de6e15de2c5effa882ad34dd71e48f2e739704 /kdesktop/lock
parent6960221d2c0d539b5f34bedfd004051313c1984e (diff)
downloadtdebase-0a874e41b6f30d3276a8ab6536a7c3f692ffed65.tar.gz
tdebase-0a874e41b6f30d3276a8ab6536a7c3f692ffed65.zip
Write more details when kdesktop lock fails to grab input devices
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'kdesktop/lock')
-rw-r--r--kdesktop/lock/lockprocess.cc6
1 files changed, 6 insertions, 0 deletions
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);
}