Skip to content

Commit

Permalink
Attempted tooltip issue fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
irungentoo committed Jan 22, 2015
1 parent 724637d commit d7bcd9f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tooltip.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,16 @@ void tooltip_new(MAYBE_I18NAL_STRING* text)
if(b->timer_running || b->visible || b->mouse_down) {
return;
}

b->timer_running = 1;
thread(mouse_pos_check,NULL);
}

void mouse_pos_check(void *UNUSED(args))
{
TOOLTIP *b = &tooltip;
int old_x = 0, old_y = 0, tick = 0;
b->timer_running = 1;

while(1) {
if(mouse.x - old_x == 0 && mouse.y - old_y == 0) {
if(tick >= 5) {
Expand Down

0 comments on commit d7bcd9f

Please sign in to comment.