Commit 04605d83 authored by Gildas Bazin's avatar Gildas Bazin

* modules/video_output/x11/xcommon.c: fix for detection of parent window size changes

parent bc309899
......@@ -518,17 +518,11 @@ static int ManageVideo( vout_thread_t *p_vout )
/* ConfigureNotify event: prepare */
if( xevent.type == ConfigureNotify )
{
if( (unsigned int)xevent.xconfigure.width
!= p_vout->p_sys->p_win->i_width ||
(unsigned int)xevent.xconfigure.height
!= p_vout->p_sys->p_win->i_height )
{
/* Update dimensions */
XResizeWindow( p_vout->p_sys->p_display,
p_vout->p_sys->p_win->base_window,
xevent.xconfigure.width,
xevent.xconfigure.height );
}
/* Update dimensions */
XResizeWindow( p_vout->p_sys->p_display,
p_vout->p_sys->p_win->base_window,
xevent.xconfigure.width,
xevent.xconfigure.height );
}
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment