Changeset View
Changeset View
Standalone View
Standalone View
keyboard_input.cpp
Show First 20 Lines • Show All 165 Lines • ▼ Show 20 Line(s) | 157 | do { | |||
---|---|---|---|---|---|
166 | } | 166 | } | ||
167 | if (!t->readyForPainting()) { | 167 | if (!t->readyForPainting()) { | ||
168 | continue; | 168 | continue; | ||
169 | } | 169 | } | ||
170 | found = t; | 170 | found = t; | ||
171 | break; | 171 | break; | ||
172 | } while (it != stacking.begin()); | 172 | } while (it != stacking.begin()); | ||
173 | } | 173 | } | ||
174 | } else if (!input()->isSelectingWindow() && !input()->isBreakingPointerConstraints()) { | 174 | } else if (!input()->isSelectingWindow()) { | ||
175 | found = workspace()->activeClient(); | 175 | found = workspace()->activeClient(); | ||
176 | } | 176 | } | ||
177 | if (found && found->surface()) { | 177 | if (found && found->surface()) { | ||
178 | if (found->surface() != seat->focusedKeyboardSurface()) { | 178 | if (found->surface() != seat->focusedKeyboardSurface()) { | ||
179 | seat->setFocusedKeyboardSurface(found->surface()); | 179 | seat->setFocusedKeyboardSurface(found->surface()); | ||
180 | auto newKeyboard = seat->focusedKeyboard(); | 180 | auto newKeyboard = seat->focusedKeyboard(); | ||
181 | if (newKeyboard && newKeyboard->client() == waylandServer()->xWaylandConnection()) { | 181 | if (newKeyboard && newKeyboard->client() == waylandServer()->xWaylandConnection()) { | ||
182 | // focus passed to an XWayland surface | 182 | // focus passed to an XWayland surface | ||
▲ Show 20 Lines • Show All 81 Lines • Show Last 20 Lines |