Commit 04605d83 authored by gbazin's avatar gbazin
Browse files

* 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 ) ...@@ -518,17 +518,11 @@ static int ManageVideo( vout_thread_t *p_vout )
/* ConfigureNotify event: prepare */ /* ConfigureNotify event: prepare */
if( xevent.type == ConfigureNotify ) if( xevent.type == ConfigureNotify )
{ {
if( (unsigned int)xevent.xconfigure.width /* Update dimensions */
!= p_vout->p_sys->p_win->i_width || XResizeWindow( p_vout->p_sys->p_display,
(unsigned int)xevent.xconfigure.height p_vout->p_sys->p_win->base_window,
!= p_vout->p_sys->p_win->i_height ) 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 );
}
} }
} }
} }
......
Supports Markdown
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