diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2016-09-11 12:54:14 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2016-09-11 12:56:01 +0200 |
commit | 78014041e8f266c2e26c4d96b758adfa2d892ddd (patch) | |
tree | 9a119b12aa7865e97fc79bb369d298eee3f7c238 /kdesktop/lock | |
parent | ac468225152f1bc7c25b6b3882a609050c42e486 (diff) | |
download | tdebase-78014041e8f266c2e26c4d96b758adfa2d892ddd.tar.gz tdebase-78014041e8f266c2e26c4d96b758adfa2d892ddd.zip |
Write more details when kdesktop lock fails to grab input devices
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 0a874e41b6f30d3276a8ab6536a7c3f692ffed65)
Diffstat (limited to 'kdesktop/lock')
-rw-r--r-- | kdesktop/lock/lockprocess.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kdesktop/lock/lockprocess.cc b/kdesktop/lock/lockprocess.cc index bfafa371b..d1121a706 100644 --- a/kdesktop/lock/lockprocess.cc +++ b/kdesktop/lock/lockprocess.cc @@ -1216,6 +1216,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); } @@ -1239,6 +1242,9 @@ bool LockProcess::grabMouse() True, GRABEVENTS, GrabModeAsync, GrabModeAsync, None, cursorHandle, CurrentTime ); + if (rv != GrabSuccess) { + kdWarning(1204) << "LockProcess::grabMouse() failed: " << rv << endl; + } return (rv == GrabSuccess); } |