[vlc-devel] commit: Fix EMWH fullscreen mode request ( Rémi Denis-Courmont )
git version control
git at videolan.org
Fri Nov 13 17:45:36 CET 2009
vlc | branch: 1.0-bugfix | Rémi Denis-Courmont <remi at remlab.net> | Wed Nov 11 20:20:31 2009 +0200| [393fde7391773e8a6e8ba260c79926f8e406a82b] | committer: Rémi Denis-Courmont
Fix EMWH fullscreen mode request
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=393fde7391773e8a6e8ba260c79926f8e406a82b
---
modules/video_output/x11/xcommon.c | 27 +++++++++++++++------------
1 files changed, 15 insertions(+), 12 deletions(-)
diff --git a/modules/video_output/x11/xcommon.c b/modules/video_output/x11/xcommon.c
index 61ef979..6578fdc 100644
--- a/modules/video_output/x11/xcommon.c
+++ b/modules/video_output/x11/xcommon.c
@@ -2179,21 +2179,24 @@ static void ToggleFullScreen ( vout_thread_t *p_vout )
if( p_vout->p_sys->b_net_wm_state_fullscreen )
{
- XClientMessageEvent event;
-
- memset( &event, 0, sizeof( XClientMessageEvent ) );
-
- event.type = ClientMessage;
- event.message_type = p_vout->p_sys->net_wm_state;
- event.display = p_vout->p_sys->p_display;
- event.window = p_vout->p_sys->p_win->base_window;
- event.format = 32;
- event.data.l[ 0 ] = 1; /* set property */
- event.data.l[ 1 ] = p_vout->p_sys->net_wm_state_fullscreen;
+ XClientMessageEvent event = {
+ .type = ClientMessage,
+ .window = p_vout->p_sys->p_win->base_window,
+ .message_type = p_vout->p_sys->net_wm_state,
+ .format = 32,
+ .data = {
+ .l = {
+ 1, /* set property */
+ p_vout->p_sys->net_wm_state_fullscreen,
+ 0,
+ 1,
+ },
+ },
+ };
XSendEvent( p_vout->p_sys->p_display,
DefaultRootWindow( p_vout->p_sys->p_display ),
- False, SubstructureRedirectMask,
+ False, SubstructureNotifyMask|SubstructureRedirectMask,
(XEvent*)&event );
}
More information about the vlc-devel
mailing list