Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/wayland/egl_wayland_backend.cpp
Show First 20 Lines • Show All 131 Lines • ▼ Show 20 Line(s) | 131 | for (auto o : m_outputs) { | |||
---|---|---|---|---|---|
132 | cleanupOutput(o); | 132 | cleanupOutput(o); | ||
133 | } | 133 | } | ||
134 | m_outputs.clear(); | 134 | m_outputs.clear(); | ||
135 | } | 135 | } | ||
136 | 136 | | |||
137 | bool EglWaylandBackend::createEglWaylandOutput(WaylandOutput *waylandOutput) | 137 | bool EglWaylandBackend::createEglWaylandOutput(WaylandOutput *waylandOutput) | ||
138 | { | 138 | { | ||
139 | auto *output = new EglWaylandOutput(waylandOutput, this); | 139 | auto *output = new EglWaylandOutput(waylandOutput, this); | ||
140 | if (output->init(this)) { | 140 | if (!output->init(this)) { | ||
141 | return false; | 141 | return false; | ||
142 | } | 142 | } | ||
143 | m_outputs << output; | 143 | m_outputs << output; | ||
144 | return true; | 144 | return true; | ||
145 | } | 145 | } | ||
146 | 146 | | |||
147 | void EglWaylandBackend::cleanupOutput(EglWaylandOutput *output) | 147 | void EglWaylandBackend::cleanupOutput(EglWaylandOutput *output) | ||
148 | { | 148 | { | ||
▲ Show 20 Lines • Show All 262 Lines • Show Last 20 Lines |