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 0a874e41b6)
pull/182/head
Slávek Banko 8 years ago
parent ac46822515
commit 78014041e8

@ -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);
}

Loading…
Cancel
Save