Changeset View
Changeset View
Standalone View
Standalone View
abstract_wayland_output.cpp
Show First 20 Lines • Show All 106 Lines • ▼ Show 20 Line(s) | 89 | { | |||
---|---|---|---|---|---|
107 | emit modeChanged(); | 107 | emit modeChanged(); | ||
108 | } | 108 | } | ||
109 | 109 | | |||
110 | void AbstractWaylandOutput::setChanges(KWayland::Server::OutputChangeSet *changes) | 110 | void AbstractWaylandOutput::setChanges(KWayland::Server::OutputChangeSet *changes) | ||
111 | { | 111 | { | ||
112 | qCDebug(KWIN_CORE) << "Set changes in AbstractWaylandOutput."; | 112 | qCDebug(KWIN_CORE) << "Set changes in AbstractWaylandOutput."; | ||
113 | Q_ASSERT(!m_waylandOutputDevice.isNull()); | 113 | Q_ASSERT(!m_waylandOutputDevice.isNull()); | ||
114 | 114 | | |||
115 | if (!changes) { | | |||
116 | qCDebug(KWIN_CORE) << "No changes."; | | |||
117 | // No changes to an output is an entirely valid thing | | |||
118 | } | | |||
119 | //enabledChanged is handled by plugin code | 115 | //enabledChanged is handled by plugin code | ||
120 | if (changes->modeChanged()) { | 116 | if (changes->modeChanged()) { | ||
121 | qCDebug(KWIN_CORE) << "Setting new mode:" << changes->mode(); | 117 | qCDebug(KWIN_CORE) << "Setting new mode:" << changes->mode(); | ||
122 | m_waylandOutputDevice->setCurrentMode(changes->mode()); | 118 | m_waylandOutputDevice->setCurrentMode(changes->mode()); | ||
123 | updateMode(changes->mode()); | 119 | updateMode(changes->mode()); | ||
124 | } | 120 | } | ||
125 | if (changes->transformChanged()) { | 121 | if (changes->transformChanged()) { | ||
126 | qCDebug(KWIN_CORE) << "Server setting transform: " << (int)(changes->transform()); | 122 | qCDebug(KWIN_CORE) << "Server setting transform: " << (int)(changes->transform()); | ||
▲ Show 20 Lines • Show All 136 Lines • Show Last 20 Lines |