Fixed bug in do_clever_numbuts not displaying tooltips.
Comment: Clear all events so tooltips work, this is not ideal and only needed because calls from the menu still have some events left over when do_clever_numbuts is called. Calls from keyshortcuts do not have this problem.
This commit is contained in:
@@ -1310,6 +1310,19 @@ int do_clever_numbuts(char *name, int tot, int winevent)
|
||||
int a, sizex, sizey, x1, y2;
|
||||
short mval[2], event;
|
||||
|
||||
/* Clear all events so tooltips work, this is not ideal and
|
||||
only needed because calls from the menu still have some events
|
||||
left over when do_clever_numbuts is called.
|
||||
Calls from keyshortcuts do not have this problem.*/
|
||||
ScrArea *sa;
|
||||
BWinEvent temp_bevt;
|
||||
for (sa= G.curscreen->areabase.first; sa; sa= sa->next) {
|
||||
while( bwin_qread( sa->win, &temp_bevt ) ) {}
|
||||
while( bwin_qread( sa->headwin, &temp_bevt ) ) {}
|
||||
}
|
||||
/* Done clearing events */
|
||||
|
||||
|
||||
if(tot<=0 || tot>MAXNUMBUTS) return 0;
|
||||
|
||||
getmouseco_sc(mval);
|
||||
|
||||
Reference in New Issue
Block a user