Changeset View
Changeset View
Standalone View
Standalone View
keyboard_input.cpp
Show First 20 Lines • Show All 152 Lines • ▼ Show 20 Line(s) | |||||
153 | { | 153 | { | ||
154 | if (!m_inited) { | 154 | if (!m_inited) { | ||
155 | return; | 155 | return; | ||
156 | } | 156 | } | ||
157 | auto seat = waylandServer()->seat(); | 157 | auto seat = waylandServer()->seat(); | ||
158 | // TODO: this needs better integration | 158 | // TODO: this needs better integration | ||
159 | Toplevel *found = nullptr; | 159 | Toplevel *found = nullptr; | ||
160 | if (waylandServer()->isScreenLocked()) { | 160 | if (waylandServer()->isScreenLocked()) { | ||
161 | const ToplevelList &stacking = Workspace::self()->stackingOrder(); | 161 | const QList<Toplevel *> &stacking = Workspace::self()->stackingOrder(); | ||
162 | if (!stacking.isEmpty()) { | 162 | if (!stacking.isEmpty()) { | ||
163 | auto it = stacking.end(); | 163 | auto it = stacking.end(); | ||
164 | do { | 164 | do { | ||
165 | --it; | 165 | --it; | ||
166 | Toplevel *t = (*it); | 166 | Toplevel *t = (*it); | ||
167 | if (t->isDeleted()) { | 167 | if (t->isDeleted()) { | ||
168 | // a deleted window doesn't get mouse events | 168 | // a deleted window doesn't get mouse events | ||
169 | continue; | 169 | continue; | ||
▲ Show 20 Lines • Show All 88 Lines • Show Last 20 Lines |