• Michael Natterer's avatar
    Bug 732160 - menu activation with alt-somekey makes tools stay... · 2a31b96f
    Michael Natterer authored
    ...in "alt-pressed" mode
    
    Menu activation doesn't cause a focus-out becaus menu keyboard
    grabbing is implemented with a simple gtk_grab_add() (the menu popup
    never gets the focus). Therefore, the canvas never gets a focus-out
    event and the pressed modifiers are stuck.
    
    Fixed by connecting to "grab-notify" on the canvas, and artificially
    releasing all modifiers when the canvas is shadowed by a grab.
    2a31b96f
gimpdisplayshell-tool-events.h 2.86 KB