New GtkToolbar: cursor focus bug
April 25, 2012
The new GtkToolbar brought a really annoying bug:
If you make a mouse click under/above the time slider, the cursor becomes a "fist" (hard to explain)
and you can't do anything except moving the cursor.
audacious-git (25th April)
Theme: Orion and Greybird tested
For a better explanation, a short video is attached.
Forgot to complete the title but can't edit it anymore.
Sorry, please change it to "New GtkToolbar: cursor focus bug"
- Subject changed from New GtkToolbar: to New GtkToolbar: cursor focus bug
I can't reproduce it. GTK+ 3.4.1, tested with Orion and Adwaita themes.
Could it be related to XFCE? I just tried reproducing with Gnome 3 and was unable to do it.
But there's still a problem: the time slider and the time label get paused (as shown in the video).
Are you able to reproduce this?
Hmm, actually yeah. When I click on the toolbar, the time slider and the time label get paused.
It seems that "button-press-event" signal gets emitted for the slider... but there's no "button-release-event" afterwards.
- Status changed from New to Rejected
We don't do anything special with cursors, or even look at any mouse events on the toolbar, so this is definitely a GTK+ bug. Closing.
Downgrading GTK+ to 3.2 fixed the cursor problem, so it is actually a regression in GTK+.
The slider/label pausing remains the same.
Do you think the cursor related issue needs to be reported to XFCE or GTK+?
The problem is "GTK_STYLE_CLASS_PRIMARY_TOOLBAR" in ui_gtk.c.
Replacing it with "GTK_STYLE_CLASS_TOOLBAR" or commenting the two context lines fixes this bug.
But the toolbar loses its different appearance.
Also available in: Atom