ddd gets inactive when mouse is moved out of its window

404 views Asked by At

My ddd window doesn't take any keyboard input when my mouse cursor is moved out of the window. Although ddd window is still active, but it doesn't take any inputs. I will have to move my mouse over its window to make it work again. Is there a way to configure it in a way that it takes the input no matter where the mouse pointer is, just like any other X window, xterm for example.

3

There are 3 answers

2
js. On

Your are under unix, right? That depends on your window manager. The current behavior is called "focus follow mouse."

OTOH, the commenter is right to point out that if DDD is the only program showing this problem, it might be something else. One idea is to turn of some tool auto raise magic, as indicated in the manual.

0
Pascal Cuoq On

If ddd implements some sort of follow-focus itself instead of relying on the window manager, I am afraid that it's not going to be easy to prevent it. The good news is that ddd doesn't do anything very smart, it's just a front-end for real debuggers (say, gdb). So if you don't find any way to fix it, you can easily switch to any other front-end (say, Emacs).

0
tengfred On

I had the same problem; DDD behaved like focus-follows-mouse, when all other windows (and the setting in gnome) was click-to-focus. This was in DDD 3.3.11. For me, it (mostly) works now, after I changed "Keyboard focus" to "Click to type" in the Preferences, Startup tab.