Re: Xinerama || Pseudoramix
Re: Xinerama || Pseudoramix
- Subject: Re: Xinerama || Pseudoramix
- From: John Davidorff Pell <email@hidden>
- Date: Wed, 30 Jul 2003 18:37:54 -0700
I'm going crazy trying to figure out how to make Xinerama work! I've
decided to make a new function gui_check_xinerama() that is called at
the end of gui_init(), it checks for xinerama and then if it finds it
modifies scr_height and src_width to cover just the main screen. The
XDarwin (X11.app) implementation of Xinerama still has PanoramiX code
and functions as well as some PseudoramiX stuff, so I'm entirely stuck
when it comes to figuring out what functions to use to do what when
where and how. I've been reading and re-reading the .h files in
/usr/X11R6/include trying to find the prototypes for the Xinerama
functions, but I'm not doing to well...
Here is my new function gui_check_xinerama(), so far:
void
gui_check_xinerama(void)
{
int *xin, num_heads;
if(XineramaIsActive(dd,root_win))
{
num_heads = XineramaQueryScreens(dd, xin);
/*XPanoramiXGetScreenSize(dd, root_win, fb_rects, num_fbs);*/
/* If I enable this I get a seg fault at runtime */
/*
scr_width = TODO
scr_height = TODO
*/
}
}
I can't seem to get my hands on proper documentation... arg!
Help is very much appreciated!
Thanx,
JP
--
Every time you share on a P2P network, God kills a kitten.
Please think of the kittens.
On Wednesday, July 30, 2003, at 5:12 PM, Sean Ahern wrote:
John Davidorff Pell wrote:
I'm studying the calls that it uses (its written entirely using XLib,
no
gtk+ or QT or anything) and its going slowly. If I can figure out
what
makes it draw where it does, then i can just change it to draw from
the
bottom of the physical screen (as reported by XineramaGetData())
right?
Theoretically, yes.
I have little Xinerama experience, but a lot of X11 experience. While
there
is code in "move_taskbar" at lines 748-762 which make the taskbar
appear and
disappear by moving it offscreen, the code that you're probably most
interested in occurs at line 343,344. That creation code tells X to
create
the window at the very bottom-left of the screen. Change that and you
should
be golden. You might want to change the code in "move_taskbar" in case
you ever want to click on the little "grills" on the left and right of
the taskbar to hide the thing.
-Sean
__
email@hidden
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
X11 for Mac OS X FAQ: http://developer.apple.com/qa/qa2001/qa1232.html
Report issues, request features, feedback: http://developer.apple.com/bugreporter
Do not post admin requests to the list. They will be ignored.