]> git.sesse.net Git - vlc/commitdiff
* ./modules/video_output/x11/xcommon.c: we ignore MapNotify and UnmapNotify
authorSam Hocevar <sam@videolan.org>
Wed, 15 Jan 2003 13:48:14 +0000 (13:48 +0000)
committerSam Hocevar <sam@videolan.org>
Wed, 15 Jan 2003 13:48:14 +0000 (13:48 +0000)
    events once our window has been properly mapped.

modules/video_output/x11/xcommon.c

index ee6ef9844eadf78f2606ae5c9f301045aa407a90..a05809d43d8e1655d7c82986816066701d201e8e 100644 (file)
@@ -2,7 +2,7 @@
  * xcommon.c: Functions common to the X11 and XVideo plugins
  *****************************************************************************
  * Copyright (C) 1998-2001 VideoLAN
- * $Id: xcommon.c,v 1.9 2003/01/09 18:06:06 sam Exp $
+ * $Id: xcommon.c,v 1.10 2003/01/15 13:48:14 sam Exp $
  *
  * Authors: Vincent Seguin <seguin@via.ecp.fr>
  *          Samuel Hocevar <sam@zoy.org>
@@ -686,13 +686,13 @@ static int ManageVideo( vout_thread_t *p_vout )
                 ToggleCursor( p_vout );
             }
         }
-        /* Reparent move -- XXX: why are we getting this ? */
-        else if( xevent.type == ReparentNotify )
+        else if( xevent.type == ReparentNotify /* XXX: why do we get this? */
+                  || xevent.type == MapNotify
+                  || xevent.type == UnmapNotify )
         {
-            ;
+            /* Ignore these events */
         }
-        /* Other event */
-        else
+        else /* Other events */
         {
             msg_Warn( p_vout, "unhandled event %d received", xevent.type );
         }