[haiku-development] Re: Can we do better with messages that are dispatched by the menu window looper?

  • From: John Scipione <jscipione@xxxxxxxxx>
  • To: "haiku-development@xxxxxxxxxxxxx" <haiku-development@xxxxxxxxxxxxx>
  • Date: Sat, 29 Feb 2020 15:36:10 -0500

On Sat, Feb 29, 2020 at 3:00 AM Dario Casalinuovo <b.vitruvio@xxxxxxxxx> wrote:


My suggestion would be to try to install a BMessageFilter in the menu window 
looper, and redirect the messages you are interested from there. A subclass 
should suffice.


I don't think that a message filter would help here because it allows
you to filter out messages that you're not interested in, while the
problem here is that the application window is not getting the
messages at all because the menu window is taking the messages for
itself and dropping them on the base class floor. Ideally I'd like to
pass the messages on from the menu window to the app window directly
but I don't know how to do that without involving the Application
thread as a go-between.

Other related posts: