[haiku-bugs] Re: [Haiku] #12286: Menus seem to be leaking ports
- From: "bonefish" <trac@xxxxxxxxxxxx>
- Date: Thu, 06 Aug 2015 15:34:20 -0000
#12286: Menus seem to be leaking ports
----------------------------------+----------------------------
Reporter: ttcoder | Owner: axeld
Type: bug | Status: new
Priority: high | Milestone: R1/beta1
Component: Kits/Interface Kit | Version: R1/Development
Resolution: | Keywords:
Blocked By: | Blocking:
Has a Patch: 0 | Platform: All
----------------------------------+----------------------------
Comment (by bonefish):
Replying to [comment:17 jackburton]:
By the way, maybe John could explain that change, because I don't
understand it completely. It seems that now two threads are used instead
of one.
After a quick look, I think I made a good decision in the past not to
touch the menu code. Yeah, the new thread polls `GetMouse()` until all
mouse buttons are released and then uninstalls the message filter. Why the
message filter can't do that itself, I don't known.
The old thread's activities are to invalidate the view directly after it
is started and once more just before it terminates. In between it polls
`fMenuBar->fTracking`. To me it doesn't sound like a thread would be
needed for that purpose either.
--
Ticket URL: <
https://dev.haiku-os.org/ticket/12286#comment:19>
Haiku <
https://dev.haiku-os.org>
Haiku - the operating system.
Other related posts: