# HG changeset patch # User reimar # Date 1227473345 0 # Node ID 452231ce45b9b180b8ef75652ea3683b5c834a4c # Parent 3f4990a693c2ee07002396accbb965fd6843552e Clear the whole window on resize in vo_x11 since we do not yet know how large the borders will be. diff -r 3f4990a693c2 -r 452231ce45b9 libvo/vo_x11.c --- a/libvo/vo_x11.c Sun Nov 23 20:47:04 2008 +0000 +++ b/libvo/vo_x11.c Sun Nov 23 20:49:05 2008 +0000 @@ -89,7 +89,9 @@ { 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)