[haiku-bugs] Re: [Haiku] #11962: BToolBar's "flat" BButtons don't lose their "hover" state sometimes

  • From: "jackburton" <trac@xxxxxxxxxxxx>
  • Date: Sun, 12 Apr 2015 15:01:14 -0000

#11962: BToolBar's "flat" BButtons don't lose their "hover" state sometimes
----------------------------------+----------------------------
Reporter: jackburton | Owner: nobody
Type: bug | Status: assigned
Priority: normal | Milestone: R1
Component: Kits/Interface Kit | Version: R1/Development
Resolution: | Keywords:
Blocked By: | Blocking:
Has a Patch: 0 | Platform: All
----------------------------------+----------------------------

Comment (by jackburton):

Replying to [comment:3 waddlesplash]:

My prior analysis of the situation is that because {{{BToolBar}}}'s
{{{BButton}}}s do not have {{{B_FULL_POINTER_HISTORY}}} enabled. This (in
practice at least) means that some, but not all of the enter/leave events
will reach the button. So if you slowly move the mouse off of the buttons,
they will de-hover 100% of the time. But if you move the mouse quickly off
of the buttons (easily reproducible by moving another window halfway
overtop of one of the buttons, focusing that window, and then moving the
mouse on the button and then off onto the other window), the button never
is told the mouse isn't on it and so it keeps its "hovering" look.

I don't think this is the case, since B_ENTERED/B_EXITED_VIEW messages
should always be dispatched, with or without the B_FULL_POINTER_HISTORY
flag.
I'd be more inclined to think this is a bug in interface kit or/and
app_server, as X512 wrote.

--
Ticket URL: <https://dev.haiku-os.org/ticket/11962#comment:5>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: