13
0
livetrax/libs/tk/ytk
Paul Davis f8f6c89136 fix a likely logic error in GtkMenu handling of enter events
On macOS popping up a menu with a position function that leads the menu to be
under the mouse pointer generates the same initial set of enter events as on
linux, but this is then followed  by some leave events and then a repeat of the
same set of enter events.

this exposes what appears to be a logic error in gtk_menu_enter_notify().

Nonlinear enter events (i.e. where the menu pops up under the mouse, so the
mouse was never actually moved into the menu's window) should not cause a reset
of priv->seen_item_enter. This value, when true, is used to force the next
received button release event to be handle as an menu activation event. This
should only happen when the mouse has actually been moved by the user into the
menu (as already indicated in existing comments). The value has this effect by,
on the next enter event for a menu item, if already set, forcing
menu->activate_time to zero, which in turn will cause menu activation on button
up/release.

This bug doesn't appear on Linux (or Windows) because the event sequence
associated with a menu popup is different. The lack of another set of enter
events means that menu->activate_time is never reset, and so the behavior is as
expected.

This change makes the setting of priv->seen_item_enter be idempotent with
respect to non-linear enter events, which I believe is the intended behavior.
2024-07-15 11:09:59 -06:00
..
po Czech translation updates. 2024-02-03 21:12:02 +01:00
ytk/gtk Fix YTK doxygen errors 2024-05-27 22:21:29 +02:00
config.h
fnmatch.c
gtkaboutdialog.c
gtkaccelgroup.c
gtkaccellabel.c
gtkaccelmap.c
gtkaccessible.c
gtkaction.c
gtkactiongroup.c
gtkactivatable.c
gtkadjustment.c
gtkaliasdef.c
gtkalignment.c
gtkarrow.c
gtkaspectframe.c
gtkassistant.c
gtkbbox.c
gtkbin.c
gtkbindings.c
gtkbox.c
gtkbuildable.c
gtkbuilder.c
gtkbuilderparser.c
gtkbutton.c
gtkcelleditable.c
gtkcelllayout.c
gtkcellrenderer.c
gtkcellrendereraccel.c
gtkcellrenderercombo.c
gtkcellrendererpixbuf.c
gtkcellrendererprogress.c
gtkcellrendererspin.c Fix more -Wincompatible-pointer-types 2024-03-18 21:24:46 +01:00
gtkcellrendererspinner.c
gtkcellrenderertext.c
gtkcellrenderertoggle.c
gtkcellview.c
gtkcheckbutton.c
gtkcheckmenuitem.c
gtkclipboard-quartz.c
gtkclipboard.c
gtkcolorbutton.c
gtkcolorsel.c
gtkcolorseldialog.c
gtkcombobox.c
gtkcomboboxentry.c
gtkcomboboxtext.c Fix more -Wincompatible-pointer-types 2024-03-18 21:24:46 +01:00
gtkcontainer.c
gtkdialog.c
gtkdnd-quartz.c
gtkdnd.c
gtkdrawingarea.c
gtkeditable.c
gtkentry.c
gtkentrybuffer.c
gtkentrycompletion.c
gtkeventbox.c
gtkexpander.c
gtkfilechooser.c
gtkfilechooserbutton.c
gtkfilechooserdefault.c
gtkfilechooserdialog.c
gtkfilechooserembed.c
gtkfilechooserentry.c
gtkfilechoosersettings.c
gtkfilechooserutils.c
gtkfilechooserwidget.c
gtkfilefilter.c
gtkfilesystem.c
gtkfilesystemmodel.c
gtkfixed.c
gtkfontbutton.c
gtkfontsel.c
gtkframe.c
gtkgc.c
gtkhandlebox.c
gtkhbbox.c
gtkhbox.c
gtkhpaned.c
gtkhruler.c
gtkhscale.c
gtkhscrollbar.c
gtkhseparator.c
gtkhsv.c
gtkiconcache.c
gtkiconcachevalidator.c
gtkiconfactory.c
gtkicontheme.c
gtkiconview.c
gtkimage.c
gtkimagemenuitem.c
gtkimcontext.c
gtkimcontextsimple.c
gtkimmodule.c Fix more -Wincompatible-pointer-types 2024-03-18 21:24:46 +01:00
gtkimmulticontext.c
gtkinfobar.c
gtkinvisible.c
gtkitem.c
gtkkeyhash.c
gtklabel.c Fix more -Wincompatible-pointer-types 2024-03-18 21:24:46 +01:00
gtklayout.c
gtklinkbutton.c
gtkliststore.c
gtkmain.c YTK: remove unused code 2024-03-18 22:02:54 +01:00
gtkmarshal.c
gtkmarshalers.c
gtkmenu.c fix a likely logic error in GtkMenu handling of enter events 2024-07-15 11:09:59 -06:00
gtkmenubar.c
gtkmenuitem.c
gtkmenushell.c
gtkmenutoolbutton.c
gtkmessagedialog.c
gtkmisc.c
gtkmnemonichash.c
gtkmodules.c
gtkmountoperation-stub.c
gtkmountoperation-x11.c
gtkmountoperation.c
gtknotebook.c
gtkobject.c
gtkoffscreenwindow.c
gtkoptionmenu.c
gtkorientable.c
gtkpaned.c
gtkpango.c
gtkpathbar.c
gtkplug-stub.c
gtkplug-win32.c
gtkplug-x11.c
gtkplug.c
gtkprogress.c
gtkprogressbar.c
gtkquartz.c YTK: remove unused code 2024-03-18 22:02:54 +01:00
gtkquery.c
gtkradioaction.c
gtkradiobutton.c
gtkradiomenuitem.c
gtkradiotoolbutton.c
gtkrange.c
gtkrbtree.c
gtkrc.c
gtkrecentaction.c
gtkrecentchooser.c
gtkrecentchooserdefault.c
gtkrecentchooserdialog.c
gtkrecentchoosermenu.c
gtkrecentchooserutils.c
gtkrecentchooserwidget.c
gtkrecentfilter.c
gtkrecentmanager.c
gtkruler.c
gtkscale.c ytk: Fix function pointer casting compiler error with clang 2024-02-21 13:30:23 +01:00
gtkscalebutton.c
gtkscrollbar.c
gtkscrolledwindow.c
gtksearchengine.c
gtksearchenginequartz.c
gtksearchenginesimple.c
gtkselection.c
gtkseparator.c
gtkseparatormenuitem.c
gtkseparatortoolitem.c
gtksettings.c
gtkshow.c
gtksizegroup.c
gtksocket-stub.c
gtksocket-win32.c
gtksocket-x11.c
gtksocket.c
gtkspinbutton.c
gtkspinner.c
gtkstatusbar.c
gtkstock.c
gtkstyle.c
gtktable.c
gtktearoffmenuitem.c
gtktextbtree.c
gtktextbuffer.c
gtktextbufferrichtext.c
gtktextbufferserialize.c
gtktextchild.c
gtktextdisplay.c
gtktextiter.c
gtktextlayout.c
gtktextmark.c
gtktextsegment.c
gtktexttag.c
gtktexttagtable.c
gtktexttypes.c
gtktextutil.c
gtktextview.c
gtkthemes.c
gtktoggleaction.c
gtktogglebutton.c
gtktoggletoolbutton.c
gtktoolbar.c
gtktoolbutton.c
gtktoolitem.c
gtktoolitemgroup.c
gtktoolpalette.c Fix more -Wincompatible-pointer-types 2024-03-18 21:24:46 +01:00
gtktoolshell.c
gtktooltip.c
gtktooltips.c
gtktreedatalist.c
gtktreednd.c
gtktreemodel.c
gtktreemodelfilter.c
gtktreemodelsort.c
gtktreeselection.c
gtktreesortable.c
gtktreestore.c
gtktreeview.c Fix more -Wincompatible-pointer-types 2024-03-18 21:24:46 +01:00
gtktreeviewcolumn.c
gtktypebuiltins.c
gtktypeutils.c
gtkuimanager.c Fix more -Wincompatible-pointer-types 2024-03-18 21:24:46 +01:00
gtkvbbox.c
gtkvbox.c
gtkviewport.c
gtkvpaned.c
gtkvruler.c
gtkvscale.c
gtkvscrollbar.c
gtkvseparator.c
gtkwidget.c Fix more -Wincompatible-pointer-types 2024-03-18 21:24:46 +01:00
gtkwin32embed.c
gtkwin32embedwidget.c
gtkwindow-decorate.c
gtkwindow.c
gtkxembed.c
line-arrow.xbm
line-wrap.xbm
tree_minus.xpm
tree_plus.xpm
wscript Fix builds with gcc-14 lstat (#9703 PR #893) 2024-05-07 00:17:56 +02:00
ximian-icons.h