[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Carbon: window close via accessibility API is broken

From: YAMAMOTO Mitsuharu
Subject: Re: Carbon: window close via accessibility API is broken
Date: Tue, 05 Sep 2006 09:37:15 +0900
User-agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.6 (Marutamachi) APEL/10.6 Emacs/22.0.50 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI)

>>>>> On Mon, 4 Sep 2006 16:50:45 +0100, David Reitter <address@hidden> said:

> Emacs (Carbon port) seems to have trouble with Accessibility API events.

> - AXPress action on the Closer button of a frame doesn't do anything
> - AXPress action on Minimize seems to work
> - AXPress action on Maximize produces garbage, with the window width  
> being wrong. Subsequent manual redraws or scrolling lead to worse  
> garbage. (I can make a screenshot available if needed.)

Thanks for the report.  I could reproduce the problem.

> I looked into the reference documents he mentions but I couldn't see  
> what events we're waiting for, and why this click on the window  
> closer needs to be dealt with separately (does it?).

It can be handled with Carbon events in kEventClassWindow.
kEventWindowClose for the Close button.  kEventWindowGetIdealSize and
kEventWindowBoundsChanged for the Maximize button.  The former is easy
to handle and I'll install a handler.  But the latter is not so
straightforward and it may conflict with the existing code because
kEventWindowBoundsChanged is called in various situations.

                                     YAMAMOTO Mitsuharu

reply via email to

[Prev in Thread] Current Thread [Next in Thread]