Commit dc20831c authored by Gildas Bazin's avatar Gildas Bazin

* modules/video_output/x11/xcommon.c: don't steal events from the owner window.

parent 92c0f930
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* Authors: Vincent Seguin <seguin@via.ecp.fr> * Authors: Vincent Seguin <seguin@via.ecp.fr>
* Sam Hocevar <sam@zoy.org> * Sam Hocevar <sam@zoy.org>
* David Kennedy <dkennedy@tinytoad.com> * David Kennedy <dkennedy@tinytoad.com>
* Gildas Bazin <gbazin@netcourrier.com> * Gildas Bazin <gbazin@videolan.org>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
...@@ -1037,7 +1037,9 @@ static int CreateWindow( vout_thread_t *p_vout, x11_window_t *p_win ) ...@@ -1037,7 +1037,9 @@ static int CreateWindow( vout_thread_t *p_vout, x11_window_t *p_win )
XMapWindow( p_vout->p_sys->p_display, p_win->base_window ); XMapWindow( p_vout->p_sys->p_display, p_win->base_window );
do do
{ {
XNextEvent( p_vout->p_sys->p_display, &xevent); XWindowEvent( p_vout->p_sys->p_display, p_win->base_window,
SubstructureNotifyMask | StructureNotifyMask |
ExposureMask, &xevent);
if( (xevent.type == Expose) if( (xevent.type == Expose)
&& (xevent.xexpose.window == p_win->base_window) ) && (xevent.xexpose.window == p_win->base_window) )
{ {
...@@ -1478,9 +1480,9 @@ static void ToggleFullScreen ( vout_thread_t *p_vout ) ...@@ -1478,9 +1480,9 @@ static void ToggleFullScreen ( vout_thread_t *p_vout )
{ {
msg_Dbg( p_vout, "leaving fullscreen mode" ); msg_Dbg( p_vout, "leaving fullscreen mode" );
XReparentWindow( p_vout->p_sys->p_display, XReparentWindow( p_vout->p_sys->p_display,
p_vout->p_sys->original_window.video_window, p_vout->p_sys->original_window.video_window,
p_vout->p_sys->original_window.base_window, 0, 0 ); p_vout->p_sys->original_window.base_window, 0, 0 );
p_vout->p_sys->fullscreen_window.video_window = None; p_vout->p_sys->fullscreen_window.video_window = None;
DestroyWindow( p_vout, &p_vout->p_sys->fullscreen_window ); DestroyWindow( p_vout, &p_vout->p_sys->fullscreen_window );
......
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