comparison libvo/x11_common.c @ 5910:20c335d98ab3

fix fullscreen bug es ilyen libvo not initialized bug with gui igy
author pontscho
date Mon, 29 Apr 2002 22:00:50 +0000
parents 104fce2b92b6
children 60cf2bca993f
comparison
equal deleted inserted replaced
5909:adc04b7ed226 5910:20c335d98ab3
540 #endif 540 #endif
541 mplayer_put_key(MOUSE_BTN0+Event.xbutton.button-1); 541 mplayer_put_key(MOUSE_BTN0+Event.xbutton.button-1);
542 break; 542 break;
543 #endif 543 #endif
544 case PropertyNotify: 544 case PropertyNotify:
545 if ( !strcmp( XGetAtomName( mydisplay,Event.xproperty.atom ),"_ICEWM_TRAY" ) || 545 {
546 !strncmp( XGetAtomName( mydisplay,Event.xproperty.atom ),"_KDE_",5 ) || 546 char * name = XGetAtomName( mydisplay,Event.xproperty.atom );
547 !strcmp( XGetAtomName( mydisplay,Event.xproperty.atom ),"KWM_WIN_DESKTOP" ) ) vo_wm_type=0; 547 if ( !name ) break;
548 if ( !strncmp( name,"_ICEWM_TRAY",11 ) ||
549 !strncmp( name,"_KDE_",5 ) ||
550 !strncmp( name,"KWM_WIN_DESKTOP",15 ) ) vo_wm_type=0;
548 551
549 fprintf(stderr,"[ws] PropertyNotify ( 0x%x ) %s ( 0x%x )\n", 552 fprintf(stderr,"[ws] PropertyNotify ( 0x%x ) %s ( 0x%x )\n",
550 vo_window,XGetAtomName( mydisplay,Event.xproperty.atom ),Event.xproperty.atom ); 553 vo_window,name,Event.xproperty.atom );
551 554
555 XFree( name );
556 }
552 break; 557 break;
553 } 558 }
554 } 559 }
555 560
556 return ret; 561 return ret;
587 vo_x11_decoration( mDisplay,vo_window,1 ); 592 vo_x11_decoration( mDisplay,vo_window,1 );
588 } 593 }
589 vo_x11_sizehint( vo_dx,vo_dy,vo_dwidth,vo_dheight,0 ); 594 vo_x11_sizehint( vo_dx,vo_dy,vo_dwidth,vo_dheight,0 );
590 XMoveResizeWindow( mDisplay,vo_window,vo_dx,vo_dy,vo_dwidth,vo_dheight ); 595 XMoveResizeWindow( mDisplay,vo_window,vo_dx,vo_dy,vo_dwidth,vo_dheight );
591 XMapRaised( mDisplay,vo_window ); 596 XMapRaised( mDisplay,vo_window );
592 597
593 XRaiseWindow( mDisplay,vo_window ); 598 XRaiseWindow( mDisplay,vo_window );
594 XFlush( mDisplay ); 599 XFlush( mDisplay );
595 } 600 }
596 601
597 void saver_on(Display *mDisplay) { 602 void saver_on(Display *mDisplay) {