xfpm-button.c: grab keysyms using keycode with matching modmask
Key binding failed for symbols assigned in xkb to multi level keys. For some reason, XGrabKey called with 'AnyModifier' does not work in this case (although it returns no error). The filter function does not receive any event for the key. Key grabbing now resolves and uses the modmask belonging to the keysym. 'AnyModifier' is still the fallback if modmask resolution fails.
Additional fix:
In xfpm_button_grab_keystring
gdk_x11_display_error_trap_pop_ignored
is called in any case before return
Code is tested with version 4.20.0 on FreeBSD 14.2.
This PR replaces !82 (closed)
Fixes: #254 (closed)
Edited by Gaël Bonithon