on xenial help sign in
raise the surface when focusing it; fixes alt-tabbing to a minimized window
11800dcLukáš Tinkl
tests/mocks/Unity/Application/SurfaceManager.cpp+4−3
@@ -257,9 +257,10 @@ void SurfaceManager::focusFirstAvailableSurface()
257 if (m_focusedSurface) {
257 if (m_focusedSurface) {
258 m_focusedSurface->setFocused(false);
258 m_focusedSurface->setFocused(false);
259 }
259 }
260− if (chosenSurface) {
260+
261− chosenSurface->setFocused(true);
261+ chosenSurface->setFocused(true);
262− }
262+ doRaise(chosenSurface);
263+
263 m_focusedSurface = chosenSurface;
264 m_focusedSurface = chosenSurface;
264}
265}
265
266