diff options
Diffstat (limited to 'libvo/vo_x11.c')
-rw-r--r-- | libvo/vo_x11.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libvo/vo_x11.c b/libvo/vo_x11.c index 98538c5d5f..c1c8ef79ce 100644 --- a/libvo/vo_x11.c +++ b/libvo/vo_x11.c @@ -89,7 +89,9 @@ static void check_events(void) { int ret = vo_x11_check_events(mDisplay); - if ((ret & VO_EVENT_RESIZE) || (ret & VO_EVENT_EXPOSE)) + if (ret & VO_EVENT_RESIZE) + vo_x11_clearwindow(mDisplay, vo_window); + else if (ret & VO_EVENT_EXPOSE) vo_x11_clearwindow_part(mDisplay, vo_window, myximage->width, myximage->height, 0); if (ret & VO_EVENT_EXPOSE && int_pause) |