From: Marko Macek <Marko.Macek@gmx.net>
To: Otto Wyss <otto.wyss@orpatec.ch>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Why is debugging under Linux such a pain
Date: Sat, 05 Feb 2005 19:11:21 +0100 [thread overview]
Message-ID: <42050C49.9050300@gmx.net> (raw)
In-Reply-To: <4204EDB9.E80BB61C@orpatec.ch>
Otto Wyss wrote:
> No
> mouse or keyboard input was possible. I was completely stuck, IMO
> something _never_ should happen. Who's to blame for this situation:
> wxWidgets, GDB, GCC/G++, X or the Linux kernel? Or any combination?
This is by design in X. XGrabKeyboard and XGrabPointer are usually to
blame. Sometimes XGrabServer (not that a normal app should ever need to
call it). Often things are made worse by a toolkit that doesn't flush
Ungrab operations immediately.
Some toolkits (Qt) have a --nograb option and sometimes activate it
automatically when being debugged.
A workaround:
- check out X config setting AllowDeactivateGrabs, enable it (see also
AllowClosedownGrabs)
- Ctrl+Alt+Numpad-Divide will then allow you to ungrab the keyboard and
mouse.
Warning: this might break your screen saver display lock function due to
an incorrect design of the lock mechanism (it uses the same "X display"
as your login session).
It would be nice if display lock programs used a separate X display
(some kind of "virtual" display support might be nice to have, mainly
for performance).
This would also be good for running games. Currently it's a a major
problem when a game freezes and there is no way to get back to the
desktop without killing X.
It would of course need to interact with current console switching
mechanism.
Mark
next prev parent reply other threads:[~2005-02-05 18:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-05 16:00 Why is debugging under Linux such a pain Otto Wyss
2005-02-05 18:11 ` Marko Macek [this message]
2005-02-06 0:23 ` Tomasz Rola
2005-02-06 0:56 ` [OT] " Kyle Moffett
2005-02-06 4:06 ` Tomasz Rola
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=42050C49.9050300@gmx.net \
--to=marko.macek@gmx.net \
--cc=linux-kernel@vger.kernel.org \
--cc=otto.wyss@orpatec.ch \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox