Mercurial > mplayer.hg
changeset 4780:01dcf6584729
changes in fullscreen/window switching code to obtain returning to
old window position (icewm aware) while using -vo x11 -zoom
author | atlka |
---|---|
date | Thu, 21 Feb 2002 10:49:57 +0000 |
parents | 5c844c0d1d7f |
children | e370779ac77f |
files | libvo/vo_x11.c |
diffstat | 1 files changed, 8 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/vo_x11.c Thu Feb 21 10:35:37 2002 +0000 +++ b/libvo/vo_x11.c Thu Feb 21 10:49:57 2002 +0000 @@ -618,10 +618,12 @@ int foo; Window root; + vo_x11_decoration( mDisplay,mywindow,0 ); XGetGeometry(mDisplay, mywindow, &root, &foo, &foo, - &vo_fs_oldwidth, &vo_fs_oldheight, &foo, &foo); - XTranslateCoordinates(mDisplay, mywindow, root, 0, 0, - &vo_fs_oldx, &vo_fs_oldy, &foo); + &vo_fs_oldwidth, &vo_fs_oldheight, &foo, &foo); + + XTranslateCoordinates(mDisplay, mywindow, root, 0, 0, + &vo_fs_oldx, &vo_fs_oldy,(Window *) &foo); mp_msg(MSGT_VO,MSGL_V,"X11 Fullscreen: saved old place: %dx%d-%dx%d\n", vo_fs_oldx, vo_fs_oldy, vo_fs_oldwidth, vo_fs_oldheight); @@ -631,12 +633,13 @@ vo_dheight = vo_screenheight; XMoveResizeWindow(mDisplay, mywindow, 0, 0, vo_screenwidth, vo_screenheight); - vo_x11_decoration( mDisplay,mywindow,0 ); + XSync(mDisplay, False); } else { XMoveResizeWindow(mDisplay, mywindow, vo_fs_oldx, vo_fs_oldy, vo_fs_oldwidth, vo_fs_oldheight); + vo_x11_decoration( mDisplay,mywindow,1 ); /* restore */ vo_dwidth = vo_fs_oldwidth; @@ -645,6 +648,7 @@ /* clean */ vo_fs_oldwidth = -1; vo_fs_oldheight = -1; + XSync(mDisplay, False); } } return VO_NOTIMPL;