[haiku-bugs] Re: [Haiku] #11962: BToolBar's "flat" BButtons don't lose their "hover" state sometimes (was: Tracker Navigator icons mouseover glitch)

  • From: "waddlesplash" <trac@xxxxxxxxxxxx>
  • Date: Sat, 11 Apr 2015 13:02: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
----------------------------------+----------------------------
Changes (by waddlesplash):

* owner: waddlesplash => nobody
* component: Applications/Tracker => Kits/Interface Kit


Comment:

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 couldn't imagine this didn't affect every button in the system -- it's
just that most buttons are not flat, and the color change on hover is not
very dramatic, so it's not really noticeable. It appears Janus
investigated that (above), and confirmed this.

As for how to fix this, I'm not sure. Just enabling
{{{B_FULL_POINTER_HISTORY}}} is probably sufficient to fix this, but the
question is "where?". I'm unsure of the performance implications of
enabling it, and if it's more than a few hundred microseconds it's
probably too much to enable it by default for every BButton. We could,
however, have BButton enable/disable it when the "flat" state is toggled.
Or perhaps this is really a bug somewhere "further up the chain" -- a bug
in the event filtering system? I'm not really familiar with any of these
things or their implications, so someone more knowledgeable than me will
have to handle this one.

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

Other related posts:

  • » [haiku-bugs] Re: [Haiku] #11962: BToolBar's "flat" BButtons don't lose their "hover" state sometimes (was: Tracker Navigator icons mouseover glitch) - waddlesplash