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

  • From: "X512" <trac@xxxxxxxxxxxx>
  • Date: Sun, 12 Apr 2015 23:35:06 -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 X512):

Bug is probably in BButton::MouseMoved function:
{{{
bool inside = Bounds().Contains(where);
if (_SetFlag(FLAG_INSIDE, inside))
Invalidate();
}}}
Setting ''inside'' variable don't take B_ENTERED_VIEW/B_EXITED_VIEW in
account.
I didn't find any problems in app_server or core Interface Kit.

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

Other related posts: