Write more details when kdesktop lock fails to grab input devices

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/2/head
Slávek Banko 8 years ago
parent 6960221d2c
commit 0a874e41b6

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

Loading…
Cancel
Save