]> git.sesse.net Git - vlc/commitdiff
* modules/video_output/x11/xcommon.c: play nice even when there isn't any window...
authorGildas Bazin <gbazin@videolan.org>
Mon, 16 Aug 2004 10:06:54 +0000 (10:06 +0000)
committerGildas Bazin <gbazin@videolan.org>
Mon, 16 Aug 2004 10:06:54 +0000 (10:06 +0000)
modules/video_output/x11/xcommon.c

index c565cffcbfcc765723d408285bce1a2e3a65f9a2..a1f2ef679084686fe0923a12d7d8937b4deb35ee 100644 (file)
@@ -1043,6 +1043,10 @@ static int CreateWindow( vout_thread_t *p_vout, x11_window_t *p_win )
             && (xevent.xexpose.window == p_win->base_window) )
         {
             b_expose = VLC_TRUE;
+            /* ConfigureNotify isn't sent if there isn't a window manager.
+             * Expose should be the last event to be received so it should
+             * be fine to assume we won't receive it anymore. */
+            b_configure_notify = VLC_TRUE;
         }
         else if( (xevent.type == MapNotify)
                  && (xevent.xmap.window == p_win->base_window) )