comparison libvo/x11_common.c @ 4438:e01ee848935f

grr, 10l. vo_x11_uninit: close display only if window not created by GUI
author alex
date Thu, 31 Jan 2002 11:26:29 +0000
parents f5fc7e9bac38
children 93d562ad1c22
comparison
equal deleted inserted replaced
4437:f5fc7e9bac38 4438:e01ee848935f
380 } 380 }
381 #endif 381 #endif
382 382
383 int vo_x11_uninit(Display *display, Window window) 383 int vo_x11_uninit(Display *display, Window window)
384 { 384 {
385 XUnmapWindow(display, window);
386
387 #ifdef HAVE_NEW_GUI 385 #ifdef HAVE_NEW_GUI
388 /* destroy window only if it's not controlled by GUI */ 386 /* destroy window only if it's not controlled by GUI */
389 if (vo_window == None) 387 if (vo_window == None)
390 #endif 388 #endif
391 { 389 {
392 /* and -wid is set */ 390 /* and -wid is set */
393 if (!(WinID > 0)) 391 if (!(WinID > 0))
394 XDestroyWindow(display, window); 392 XDestroyWindow(display, window);
395 } 393 XCloseDisplay(display);
396 394 }
397 XCloseDisplay(display);
398 return(1); 395 return(1);
399 } 396 }
400 397
401 int vo_x11_check_events(Display *mydisplay){ 398 int vo_x11_check_events(Display *mydisplay){
402 int ret=0; 399 int ret=0;