[mythtv] [patch] for xinerama oddity (was: problem using mythtv
with xinerama - new behaviour! )
Christian Hoenig
me at christianhoenig.de
Sat Aug 16 18:16:59 EDT 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Isaac Richards wrote
> Not quite understanding this -- how's it supposed to display on the proper
> screen, then, if you're hardcoding x,y to 0?
As I said, I don't know how these things works but It looks to me as follows:
This code is responsible, that the mainwindow is placed where needed depending
on the xinerama settings (from upper-left of the desktop):
mythdialog.cpp:56:
#ifndef QWS
GetMythTVGeometry(qt_xdisplay(), qt_xscreen(), &x, &y, &w, &h);
#endif
int xoff = gContext->GetNumSetting("GuiOffsetX", 0);
int yoff = gContext->GetNumSetting("GuiOffsetY", 0);
x += xoff;
y += yoff;
setGeometry(x, y, screenwidth, screenheight);
But the following (from the patch) does not position the main window, but the
stuff inside the mainwindow, whereas the first two parameters of setGeometry
() are the offset from the upper left corner of the mainwindow (not the
desktop!)
if (setsize)
{
- setGeometry(x, y, screenwidth, screenheight);
+ setGeometry(0, 0, screenwidth, screenheight);
So if using x and y here, too, causes the interior to be moved for another
xinerama offset out of the visible area and makes it unusable.
take care, have fun
/christian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQE/PkrxmauZIX3ydQURAj/jAKCAxDpdr+/BVCBZRp86KBhft8vNzACfQVGg
0k0p7jHufn9xNeq1ZK4tg28=
=McbC
-----END PGP SIGNATURE-----
More information about the mythtv-dev
mailing list