Pointer grabs causing accessibility issues! Why not deprecate them?

Xavier Bestel xavier.bestel at free.fr
Mon Apr 28 06:22:54 PDT 2008

On Mon, 2008-04-28 at 22:43 +0930, Peter Hutterer wrote:
> Francesco Fumanti wrote:
> > Could you please expand on the main reasons why it is not feasible?
> > 
> > For example, in what situations are the pointer grabs really unavoidable 
> > and unreplacable by other techniques?
> pointer grabs are a method of guaranteeing that events are delivered to 
> a certain client - and not to the window underneath the pointer as usual.
> the most common uses I can think of:
> - popup menus: apps use grabs for them because it can tell them whether 
> the following click was on the window or outside. implementing the same 
> functionality without a grab would require the client to register for 
> click events on every single visible window. This is unfeasable. 

Just as a data point: AFAIK under Windows, the toolkits just care for
the clicks in their own window to cancel a popup menu, not on the whole
desktop. So a buggy application can't grab the UI.

That doesn't make your other statements less true, of course.


More information about the xorg mailing list