After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 759091 - notebook tab stays hovered if mouse leaves slowly
notebook tab stays hovered if mouse leaves slowly
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkNotebook
3.19.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2015-12-06 16:25 UTC by Christoph Reiter (lazka)
Modified: 2015-12-07 16:42 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
screen recording. (161.41 KB, image/gif)
2015-12-06 16:25 UTC, Christoph Reiter (lazka)
  Details
GtkNotebook: Use gdouble in coordinate calculations (2.31 KB, patch)
2015-12-07 15:43 UTC, Carlos Garnacho
committed Details | Review

Description Christoph Reiter (lazka) 2015-12-06 16:25:28 UTC
Created attachment 316846 [details]
screen recording.

See attached screen recording using gtk3-widget-factory. I see this with current trunk and 3.18.5.
Comment 1 Carlos Garnacho 2015-12-07 15:43:28 UTC
Created attachment 316886 [details] [review]
GtkNotebook: Use gdouble in coordinate calculations

Otherwise rounding errors fool the "tab under coordinates" checks on
crossing events, which will be triggered close enough to the window
rectangle if the pointer moves slowly enough.

With this, the tab_prelight() function correctly figures out we've
moved the pointer outside the tab area when called in
gtk_notebook_leave_notify().
Comment 2 Emmanuele Bassi (:ebassi) 2015-12-07 15:49:38 UTC
Review of attachment 316886 [details] [review]:

Looks good to me.
Comment 3 Carlos Garnacho 2015-12-07 16:42:35 UTC
Attachment 316886 [details] pushed as c0477c2 - GtkNotebook: Use gdouble in coordinate calculations