X11: Don't redraw dialog box when mouse moves.
authorJørgen P. Tjernø <jorgen@valvesoftware.com>
Mon, 27 Jan 2014 13:43:04 -0800
changeset 813206922987b6ff
parent 8131 311302021bc9
child 8133 f24acf2403c0
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.
src/video/x11/SDL_x11messagebox.c
     1.1 --- a/src/video/x11/SDL_x11messagebox.c	Mon Jan 27 16:13:13 2014 -0500
     1.2 +++ b/src/video/x11/SDL_x11messagebox.c	Mon Jan 27 13:43:04 2014 -0800
     1.3 @@ -560,7 +560,11 @@
     1.4          case MotionNotify:
     1.5              if ( has_focus ) {
     1.6                  /* Mouse moved... */
     1.7 +                int previndex = data->mouse_over_index;
     1.8                  data->mouse_over_index = GetHitButtonIndex( data, e.xbutton.x, e.xbutton.y );
     1.9 +                if (data->mouse_over_index == previndex) {
    1.10 +                    draw = SDL_FALSE;
    1.11 +                }
    1.12              }
    1.13              break;
    1.14