Skip to content

gtkwindow: Use pointer-oriented function to deal with crossing events

Carlos Garnacho requested to merge wip/carlosg/fix-crossing-on-unmap into main

From the main commit:

    gtkwindow: Use pointer-oriented function to deal with crossing events
    
    Commit adba0b97 fixed missed pointer crossings by using a helper function that
    was already present and looked like did everything that was needed. However
    this function was oriented to keyboard focus and it also did update the related
    widget state. Doing these changes on pointer-based crossing was misuse, and
    could cause weird interactions with keyboard focus management.
    
    Fix this by using gtkmain.c gtk_synthesize_crossing_event() that is in fact
    oriented to pointers.
    
    Fixes: adba0b97 (gtkwindow: Synthesize pointer crossing events on state changes)
    Closes: https://gitlab.gnome.org/GNOME/gtk/-/issues/5094

Closes: #5094 (closed)

Merge request reports