From 5357ed08488d85df6e7433c6d4413bce5ab26049 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Thu, 22 Jun 2017 13:57:05 -0400 Subject: Cleanup some debugging information. --- src-qt5/core/libLumina/LuminaRandR-X11.cpp | 4 ++-- 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 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); -- cgit