LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   Unfreeze X11 mouse pointer and keys (https://www.linuxquestions.org/questions/linux-desktop-74/unfreeze-x11-mouse-pointer-and-keys-4175483516/)

TcShadowWalker 11-05-2013 06:12 PM

Unfreeze X11 mouse pointer and keys
 
Hi,

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. :)

pan64 11-06-2013 09:25 AM

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 10:32 PM.