Mercurial > mplayer.hg
comparison libvo/x11_common.c @ 5919:60cf2bca993f
some bug fix
author | pontscho |
---|---|
date | Wed, 01 May 2002 09:29:06 +0000 |
parents | 20c335d98ab3 |
children | caac20b1ca79 |
comparison
equal
deleted
inserted
replaced
5918:dca3016882cf | 5919:60cf2bca993f |
---|---|
496 &foo/*width*/, &foo/*height*/, &foo, &foo); | 496 &foo/*width*/, &foo/*height*/, &foo, &foo); |
497 XTranslateCoordinates(mydisplay, vo_window, root, 0, 0, | 497 XTranslateCoordinates(mydisplay, vo_window, root, 0, 0, |
498 &vo_dx, &vo_dy, (Window *)&foo); | 498 &vo_dx, &vo_dy, (Window *)&foo); |
499 } | 499 } |
500 #endif | 500 #endif |
501 // if (verbose) | |
502 printf("X11 Window %dx%d-%dx%d\n", vo_dx, vo_dy, vo_dwidth, vo_dheight); | |
503 printf("============================================================\n" ); | |
504 ret|=VO_EVENT_RESIZE; | 501 ret|=VO_EVENT_RESIZE; |
505 break; | 502 break; |
506 case KeyPress: | 503 case KeyPress: |
507 { | 504 { |
508 int key; | 505 int key; |
547 if ( !name ) break; | 544 if ( !name ) break; |
548 if ( !strncmp( name,"_ICEWM_TRAY",11 ) || | 545 if ( !strncmp( name,"_ICEWM_TRAY",11 ) || |
549 !strncmp( name,"_KDE_",5 ) || | 546 !strncmp( name,"_KDE_",5 ) || |
550 !strncmp( name,"KWM_WIN_DESKTOP",15 ) ) vo_wm_type=0; | 547 !strncmp( name,"KWM_WIN_DESKTOP",15 ) ) vo_wm_type=0; |
551 | 548 |
552 fprintf(stderr,"[ws] PropertyNotify ( 0x%x ) %s ( 0x%x )\n", | 549 // fprintf(stderr,"[ws] PropertyNotify ( 0x%x ) %s ( 0x%x )\n",vo_window,name,Event.xproperty.atom ); |
553 vo_window,name,Event.xproperty.atom ); | |
554 | 550 |
555 XFree( name ); | 551 XFree( name ); |
556 } | 552 } |
557 break; | 553 break; |
558 } | 554 } |
576 } | 572 } |
577 | 573 |
578 void vo_x11_fullscreen( void ) | 574 void vo_x11_fullscreen( void ) |
579 { | 575 { |
580 if ( vo_wm_type ) XUnmapWindow( mDisplay,vo_window ); | 576 if ( vo_wm_type ) XUnmapWindow( mDisplay,vo_window ); |
577 | |
581 if ( !vo_fs ) | 578 if ( !vo_fs ) |
582 { | 579 { |
583 vo_fs=VO_TRUE; | 580 vo_fs=VO_TRUE; |
584 vo_old_x=vo_dx; vo_old_y=vo_dy; vo_old_width=vo_dwidth; vo_old_height=vo_dheight; | 581 vo_old_x=vo_dx; vo_old_y=vo_dy; vo_old_width=vo_dwidth; vo_old_height=vo_dheight; |
585 vo_dx=0; vo_dy=0; vo_dwidth=vo_screenwidth; vo_dheight=vo_screenheight; | 582 vo_dx=0; vo_dy=0; vo_dwidth=vo_screenwidth; vo_dheight=vo_screenheight; |