equal
deleted
inserted
replaced
1256 int index = (e->we.popupmenu.pt.y - w->top) / CLNWND_ROWSIZE; |
1256 int index = (e->we.popupmenu.pt.y - w->top) / CLNWND_ROWSIZE; |
1257 |
1257 |
1258 if (index >= 0 && e->we.popupmenu.pt.y >= w->top) |
1258 if (index >= 0 && e->we.popupmenu.pt.y >= w->top) |
1259 HandleClientListPopupClick(index, WP(w,menu_d).main_button); |
1259 HandleClientListPopupClick(index, WP(w,menu_d).main_button); |
1260 |
1260 |
1261 // Sometimes, because of the bad DeleteWindow-proc, the 'w' pointer is |
|
1262 // invalid after the last functions (mostly because it kills a window |
|
1263 // that is in front of 'w', and because of a silly memmove, the address |
|
1264 // 'w' was pointing to becomes invalid), so we need to refetch |
|
1265 // the right address... |
|
1266 DeleteWindowById(WC_TOOLBAR_MENU, 0); |
1261 DeleteWindowById(WC_TOOLBAR_MENU, 0); |
1267 } break; |
1262 } break; |
1268 |
1263 |
1269 case WE_POPUPMENU_OVER: { |
1264 case WE_POPUPMENU_OVER: { |
1270 // Our mouse hoovers over an action? Select it! |
1265 // Our mouse hoovers over an action? Select it! |