Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/fbdev/scene_qpainter_fb_backend.cpp
Show All 14 Lines | |||||
15 | GNU General Public License for more details. | 15 | GNU General Public License for more details. | ||
16 | 16 | | |||
17 | You should have received a copy of the GNU General Public License | 17 | You should have received a copy of the GNU General Public License | ||
18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
19 | *********************************************************************/ | 19 | *********************************************************************/ | ||
20 | #include "scene_qpainter_fb_backend.h" | 20 | #include "scene_qpainter_fb_backend.h" | ||
21 | #include "fb_backend.h" | 21 | #include "fb_backend.h" | ||
22 | #include "composite.h" | 22 | #include "composite.h" | ||
23 | #include "logind.h" | ||||
23 | #include "cursor.h" | 24 | #include "cursor.h" | ||
24 | #include "virtual_terminal.h" | 25 | #include "virtual_terminal.h" | ||
25 | // Qt | 26 | // Qt | ||
26 | #include <QPainter> | 27 | #include <QPainter> | ||
27 | 28 | | |||
28 | namespace KWin | 29 | namespace KWin | ||
29 | { | 30 | { | ||
30 | FramebufferQPainterBackend::FramebufferQPainterBackend(FramebufferBackend *backend) | 31 | FramebufferQPainterBackend::FramebufferQPainterBackend(FramebufferBackend *backend) | ||
Show All 39 Lines | |||||
70 | void FramebufferQPainterBackend::prepareRenderingFrame() | 71 | void FramebufferQPainterBackend::prepareRenderingFrame() | ||
71 | { | 72 | { | ||
72 | } | 73 | } | ||
73 | 74 | | |||
74 | void FramebufferQPainterBackend::present(int mask, const QRegion &damage) | 75 | void FramebufferQPainterBackend::present(int mask, const QRegion &damage) | ||
75 | { | 76 | { | ||
76 | Q_UNUSED(mask) | 77 | Q_UNUSED(mask) | ||
77 | Q_UNUSED(damage) | 78 | Q_UNUSED(damage) | ||
78 | if (!VirtualTerminal::self()->isActive()) { | 79 | if (!LogindIntegration::self()->isActiveSession()) { | ||
79 | return; | 80 | return; | ||
80 | } | 81 | } | ||
81 | QPainter p(&m_backBuffer); | 82 | QPainter p(&m_backBuffer); | ||
82 | p.drawImage(QPoint(0, 0), m_backend->isBGR() ? m_renderBuffer.rgbSwapped() : m_renderBuffer); | 83 | p.drawImage(QPoint(0, 0), m_backend->isBGR() ? m_renderBuffer.rgbSwapped() : m_renderBuffer); | ||
83 | } | 84 | } | ||
84 | 85 | | |||
85 | bool FramebufferQPainterBackend::usesOverlayWindow() const | 86 | bool FramebufferQPainterBackend::usesOverlayWindow() const | ||
86 | { | 87 | { | ||
87 | return false; | 88 | return false; | ||
88 | } | 89 | } | ||
89 | 90 | | |||
90 | } | 91 | } |