Only change selectable toolbar objects on click.

This commit is contained in:
Ole Loots 2012-11-29 01:59:20 +01:00
parent c3119b9356
commit 9ec2e77b27
1 changed files with 2 additions and 1 deletions

View File

@ -397,7 +397,8 @@ short guiwin_dispatch_event(EVMULT_IN *ev_in, EVMULT_OUT *ev_out, short msg[8])
obj_idx, ev_out->emo_mclicks, ev_out->emo_kmeta, 0
};
if (((dest->flags & GW_FLAG_CUSTOM_TOOLBAR) == 0)
&& obj_idx > 0) {
&& (obj_idx > 0)
&& (dest->toolbar[obj_idx].ob_flags & OF_SELECTABLE) != 0) {
dest->toolbar[obj_idx].ob_state |= OS_SELECTED;
// TODO: optimize redraw by setting the object clip:
guiwin_toolbar_redraw(dest, NULL);