diff options
author | Ken Moore <ken@ixsystems.com> | 2017-06-22 13:57:05 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-06-22 13:57:05 -0400 |
commit | 5357ed08488d85df6e7433c6d4413bce5ab26049 (patch) | |
tree | 9b6d750a7b4bbc138e04e1a95d663b7802205aa3 /src-qt5/core/libLumina | |
parent | Get the LuminaRandR framework able to enable/resize/move a monitor as requested. (diff) | |
download | lumina-5357ed08488d85df6e7433c6d4413bce5ab26049.tar.gz lumina-5357ed08488d85df6e7433c6d4413bce5ab26049.tar.bz2 lumina-5357ed08488d85df6e7433c6d4413bce5ab26049.zip |
Cleanup some debugging information.
Diffstat (limited to 'src-qt5/core/libLumina')
-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); |