On Mon, 12 Sep 2005 02:18 pm, Brian J. Murrell wrote:
> It's not trying to guess.  I am setting DISPLAY=:0.1 before running
> mythfrontend.  It displaying on the right screen, just not getting it's
> screen geometry from the X server for the right screen.  It runs on :0.1
> but thinks it's geometry is that of :0.0.

I did some more research on possible causes.

If you look in libs/libmyth/mythcontext.cpp at function void 
MythContextPrivate::GetScreenBounds() you can see the logic.

Its also important to understand the desktop functions found in 
file:/usr/share/qt3/doc/html/qdesktopwidget.html#details (this is on my system 
by installed the qt3 docs)

Attached is a quick hack to fix the problem for the svn tree.  I didn't even 
compile it, so best of luck.

Paul
-- 
--- libs/libmyth/mythcontext.cpp.old	2005-09-12 23:35:44.053630808 +1000
+++ libs/libmyth/mythcontext.cpp	2005-09-12 23:39:03.931244792 +1000
@@ -230,7 +230,11 @@
             .arg(desktop->width()).arg(desktop->height())
             .arg(desktop->numScreens()));
 
-    int screen = parent->GetNumSetting("XineramaScreen", 0);
+    int screen;
+    if (desktop->isVirtualDesktop())
+        screen = parent->GetNumSetting("XineramaScreen", 0);
+    else
+        screen = desktop->primaryScreen();
 
     if (screen == -1)       // Special case - span all screens
     {
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

Reply via email to