Ticket #347: nonvirtualdesktop.diff

File nonvirtualdesktop.diff, 1.0 KB (added by paul@…, 14 years ago)

svn patch

  • libs/libmyth/mythcontext.cpp

     
    230230            .arg(desktop->width()).arg(desktop->height())
    231231            .arg(desktop->numScreens()));
    232232
    233     int screen = parent->GetNumSetting("XineramaScreen", 0);
     233    int screen;
     234    if (desktop->isVirtualDesktop())
     235        screen = parent->GetNumSetting("XineramaScreen", 0);
     236    else
     237        screen = desktop->primaryScreen();
    234238
    235239    if (screen == -1)       // Special case - span all screens
    236240    {
     
    249253        if (screen < 0 || screen >= desktop->numScreens())
    250254        {
    251255            VERBOSE(VB_ALL, QString("Xinerama screen %1 was specified,"
    252                                     " but only %2 available?")
     256                                    " but only %2 available, so using screen 0.")
    253257                            .arg(screen).arg(desktop->numScreens()));
    254258            screen = 0;
    255259        }