Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
X11: Don't redraw dialog box when mouse moves.
This fixes bug #2343. (https://bugzilla.libsdl.org/show_bug.cgi?id=2343)

Thanks to Melker Narikka for the patch.
  • Loading branch information
jorgenpt committed Jan 27, 2014
1 parent aff44cc commit 2efa2dc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/video/x11/SDL_x11messagebox.c
Expand Up @@ -560,7 +560,11 @@ X11_MessageBoxLoop( SDL_MessageBoxDataX11 *data )
case MotionNotify:
if ( has_focus ) {
/* Mouse moved... */
int previndex = data->mouse_over_index;
data->mouse_over_index = GetHitButtonIndex( data, e.xbutton.x, e.xbutton.y );
if (data->mouse_over_index == previndex) {
draw = SDL_FALSE;
}
}
break;

Expand Down

0 comments on commit 2efa2dc

Please sign in to comment.