[MPlayer-users] X Screen resolution detection with multi-head xinerama.

daniel carter hedonist at win.co.nz
Wed Dec 12 09:21:07 CET 2001


daniel carter wrote:

> #ifdef HAVE_XINERAMA
>  if(XineramaIsActive(mDisplay))
>   {
>   XineramaScreenInfo *screens;
>   int num_screens;
>   screens = XineramaQueryScreens(mDisplay, &num_screens);
>   vo_screenwidth=screens[0].width;
>   vo_screenheight=screens[0].height;
>   }
>
> now i can change that to
> vo_screenwidth=screens[1].width;
> vo_screenheight=screens[1].height;
> and my problem is solved, until i want to watch something fullscreen on
> my CRT and i have to recompile mplayer :(
>
> Obviously some call needs to be made determine which screen the movie
> window is on, but i couldn't figure out what to call in Xlib.h...

Well i've spent some more time flailing around in the X documentation to no
avail.  What might be better in some cases (and easier to implement
perhaps), would be to specify on the commandline which screen it should
start on.  eg mplayer -xineramascreen 1




More information about the MPlayer-users mailing list