Unfreeze X11 mouse pointer and keys
I'm writing an application that uses Ogre3D as a toolkit to render some OpenGL. Currently, I have a deadlock in the code that I'm trying to find.
When that deadlock occurs, I loose all control over my desktop.
I do not see any mouse pointer, can not click on anything and can't use the keyboard.
The only solution is to switch to a tty and kill -9 the application,
which releases mouse and keyboard again.
However, having my app crash with a SEGFAULT makes it very hard to debug that situation. I'd like to use the debugger feature of KDevelop (which actually uses gdb) to track down the exact location of the bug in my code.
Of course, I'd need my mouse-pointer for that...
So, is there any way to force an application to release mouse and keyboard, even if it is not responsive/cooperative?
I googled around and tried "xdotool key XF86Ungrab", but that does nothing.
Any help is appreciated. :)
I think you can try to use gdb on the tty without X - or - you can start another display (but I'm not really sure if it could work)
|All times are GMT -5. The time now is 07:16 PM.|