osm-gps-map
osm-gps-map copied to clipboard
stop emission of clicks if on osd layers
There are two approaches here. If you want to manage clicks totally yourself then just use the normal gtk+ click event API.
Yes that works. However I still receive button_press and button_release events when I click on OSD elements (and thus always get the fine popup window all the time ;-).
Hmm, I will have a think about whether osm-gps-map should stop the emission of these signals if the osd element registers a click.
- keypresses that have bindings also do not get propagated, so not propagating mouse button events on OSD elements would make it consistent.
- Possible caveat: button_press and button_release should be symmetrical, so if a button_press is propagated, so should the button_release, even if it's on top of an OSD layer element.