It's useful to have a working X server if a client holds a grab when it triggers a debugger breakpoint

Xavier Bestel xavier.bestel at free.fr
Wed May 27 01:41:16 PDT 2009


On Tue, 2009-05-26 at 11:50 +1000, Peter Hutterer wrote:
> The main benefit of a grab in the use of menus is that you will get the next
> event regardless of where it occurs. This is what makes the menu disappear
> when you click elsewhere. If the application didn't grab, the menu could
> only disappear by activating a menu item, or - assuming the application
> supports this - by clicking elsewhere in one of the application's windows.

Just as a datapoint, AFAIK that's how Windows GUI toolkits work. They
don't grab the whole display, thay just wait for events in their window.

> Any suggestions on solving this feature through other means is appreciated
> (note that registering for events on every visible window doesn't count).

Limiting events to the application windows doesn't seem that bad.

	Xav





More information about the xorg mailing list