Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/x11/windowed/x11windowed_backend.cpp
Show First 20 Lines • Show All 465 Lines • ▼ Show 20 Line(s) | 463 | { | |||
---|---|---|---|---|---|
466 | } | 466 | } | ||
467 | return m_windows.at(screen).window; | 467 | return m_windows.at(screen).window; | ||
468 | } | 468 | } | ||
469 | 469 | | |||
470 | QVector<QRect> X11WindowedBackend::screenGeometries() const | 470 | QVector<QRect> X11WindowedBackend::screenGeometries() const | ||
471 | { | 471 | { | ||
472 | QVector<QRect> ret; | 472 | QVector<QRect> ret; | ||
473 | for (auto it = m_windows.constBegin(); it != m_windows.constEnd(); ++it) { | 473 | for (auto it = m_windows.constBegin(); it != m_windows.constEnd(); ++it) { | ||
474 | ret << QRect((*it).internalPosition, (*it).size); | 474 | ret << QRect((*it).internalPosition, (*it).size / (*it).scale); | ||
475 | } | 475 | } | ||
476 | return ret; | 476 | return ret; | ||
477 | } | 477 | } | ||
478 | 478 | | |||
479 | QVector<qreal> X11WindowedBackend::screenScales() const | 479 | QVector<qreal> X11WindowedBackend::screenScales() const | ||
480 | { | 480 | { | ||
481 | QVector<qreal> ret; | 481 | QVector<qreal> ret; | ||
482 | for (auto it = m_windows.constBegin(); it != m_windows.constEnd(); ++it) { | 482 | for (auto it = m_windows.constBegin(); it != m_windows.constEnd(); ++it) { | ||
483 | ret << (*it).scale; | 483 | ret << (*it).scale; | ||
484 | } return ret; | 484 | } return ret; | ||
485 | } | 485 | } | ||
486 | 486 | | |||
487 | } | 487 | } |