Changeset d4bc04b


Ignore:
Timestamp:
07/15/13 17:44:36 (12 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2
Children:
f5122ae
Parents:
2046091
Message:

Update PCDMd, add option to enable TCP listen, off by default

Also fix up main.cpp, make sure we set the screen resolution correctly, that
way we always come back to a full-screen widget

Location:
src-qt4/PCDM
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/PCDM/PCDMd

    rd0d990c rd4bc04b  
    55 
    66PCDMCONF="/usr/local/etc/pcdm.conf" 
     7 
     8XOPTS="" 
     9grep -q "^ENABLE_TCP_LISTEN=TRUE" ${PCDMCONF} 
     10if [ $? -ne 0 ]; then 
     11  XOPTS="-nolisten tcp"  
     12fi 
    713 
    814#See if VNC support is enabled for logging in to this system 
     
    3844  fi 
    3945 
    40   xinit /usr/local/bin/PCDM-session --once -- :0   
     46  xinit /usr/local/bin/PCDM-session --once -- :0 $XOPTS 
    4147done 
  • src-qt4/PCDM/src/main.cpp

    r90dc161 rd4bc04b  
    109109    //qDebug() << "Main GUI Created:" << QString::number(clock.elapsed())+" ms"; 
    110110    splash.finish(&w); //close the splash when the GUI starts up 
     111 
     112    // Set full-screen dimensions 
     113    QRect dimensions = QApplication::desktop()->screenGeometry(); 
     114    int wid = dimensions.width();     // returns desktop width 
     115    int hig = dimensions.height();    // returns desktop height 
     116    w.setGeometry(0, 0, wid, hig); 
     117 
    111118    //Set the proper size on the Application 
    112       w.setWindowFlags(Qt::Window | Qt::FramelessWindowHint | Qt::WindowStaysOnBottomHint); 
    113       w.setWindowState(Qt::WindowMaximized); //Qt::WindowFullScreen); 
     119    w.setWindowFlags(Qt::Window | Qt::FramelessWindowHint | Qt::WindowStaysOnBottomHint); 
     120    w.setWindowState(Qt::WindowMaximized); //Qt::WindowFullScreen); 
    114121 
    115122    //Setup the signals/slots to startup the desktop session 
Note: See TracChangeset for help on using the changeset viewer.