File diff r221:56c7ed3a0581 → r222:4409829eb08f
window.c
Show inline comments
 
@@ -22,13 +22,13 @@ void DispatchLeftClickEvent(Window *w, i
 

	
 
	if (w->desc_flags & WDF_DEF_WIDGET) {
 
		e.click.widget = GetWidgetFromPos(w, x, y);
 
		if (e.click.widget < 0) return; /* exit if clicked outside of widgets */
 

	
 
		wi = &w->widget[e.click.widget];
 
				
 

	
 
		/* don't allow any interaction if the button has been disabled */
 
		if (HASBIT(w->disabled_state, e.click.widget))
 
			return;
 

	
 
		if (wi->type & 0xE0) {
 
			/* special widget handling for buttons*/