diff options
-rw-r--r-- | src-qt5/core/libLumina/LuminaRandR-X11.cpp | 4 | ||||
-rw-r--r-- | src-qt5/core/libLumina/test/main.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src-qt5/core/libLumina/LuminaRandR-X11.cpp b/src-qt5/core/libLumina/LuminaRandR-X11.cpp index 8fcdbad0..214d908f 100644 --- a/src-qt5/core/libLumina/LuminaRandR-X11.cpp +++ b/src-qt5/core/libLumina/LuminaRandR-X11.cpp @@ -114,7 +114,7 @@ inline xcb_randr_mode_t modeForResolution(QSize res, QList<xcb_randr_mode_t> mod if(modes.contains(minfo.id)){ if(res.isNull() && (minfo.width > sz.width() || minfo.height > sz.height()) ){ //No resolution requested - pick the largest one - qDebug() << "Found Bigger Mode:" << sz << QSize(minfo.width, minfo.height); + //qDebug() << "Found Bigger Mode:" << sz << QSize(minfo.width, minfo.height); sz = QSize(minfo.width, minfo.height); det_mode = minfo.id; }else if(!res.isNull()){ @@ -212,7 +212,7 @@ bool OutputDevice::disable(){ bool OutputDevice::enable(QRect geom){ //if no geom provided, will add as the right-most screen at optimal resolution //if(this->isEnabled()){ return true; } //already enabled - qDebug() << "Enable Monitor:" << geom; + //qDebug() << "Enable Monitor:" << geom; xcb_randr_mode_t mode = modeForResolution(geom.size(), p_obj.modes); if(mode==XCB_NONE){ return false; } //invalid resolution for this monitor //qDebug() << " - Found Mode:" << mode; diff --git a/src-qt5/core/libLumina/test/main.cpp b/src-qt5/core/libLumina/test/main.cpp index 547a1846..39ead1aa 100644 --- a/src-qt5/core/libLumina/test/main.cpp +++ b/src-qt5/core/libLumina/test/main.cpp @@ -6,7 +6,7 @@ int main(int argc, char** argv){ QString toggle = "HDMI-2"; - QRect toggleGeom(1921,0, 1024,768); //put to the right of the default monitor + QRect toggleGeom(0,0, 1600,900); int toggleOK = -1; //-1: automatic, 0: enable monitor, 1: disable monitor QApplication A(argc, argv); |