@ -414,7 +414,7 @@ void Workspace::initializeX11()
newActiveWindow = topWindowOnDesktop ( VirtualDesktopManager : : self ( ) - > currentDesktop ( ) ) ;
}
if ( newActiveWindow = = nullptr ) {
newActiveWindow = findDesktop ( true , VirtualDesktopManager : : self ( ) - > currentDesktop ( ) ) ;
newActiveWindow = findDesktop ( true , VirtualDesktopManager : : self ( ) - > currentDesktop ( ) , activeOutput ( ) ) ;
}
}
if ( newActiveWindow ! = nullptr ) {
@ -734,7 +734,7 @@ void Workspace::addX11Window(X11Window *window)
raiseWindow ( window ) ;
// If there's no active window, make this desktop the active one
if ( activeWindow ( ) = = nullptr & & should_get_focus . count ( ) = = 0 ) {
activateWindow ( findDesktop ( true , VirtualDesktopManager : : self ( ) - > currentDesktop ( ) ) ) ;
activateWindow ( findDesktop ( true , VirtualDesktopManager : : self ( ) - > currentDesktop ( ) , window - > output ( ) ) ) ;
}
}
window - > checkActiveModal ( ) ;
@ -999,7 +999,7 @@ void Workspace::activateWindowOnDesktop(VirtualDesktop *desktop)
}
if ( ! window ) {
window = findDesktop ( true , desktop ) ;
window = findDesktop ( true , desktop , activeOutput ( ) ) ;
}
if ( window ! = m_activeWindow ) {
@ -1115,7 +1115,7 @@ void Workspace::updateCurrentActivity(const QString &new_activity)
}
if ( ! window ) {
window = findDesktop ( true , VirtualDesktopManager : : self ( ) - > currentDesktop ( ) ) ;
window = findDesktop ( true , VirtualDesktopManager : : self ( ) - > currentDesktop ( ) , activeOutput ( ) ) ;
}
if ( window ! = m_activeWindow ) {
@ -1582,7 +1582,7 @@ void Workspace::setShowingDesktop(bool showing, bool animated)
}
if ( showing_desktop ) {
Window * desktop = findDesktop ( true , VirtualDesktopManager : : self ( ) - > currentDesktop ( ) ) ;
Window * desktop = findDesktop ( true , VirtualDesktopManager : : self ( ) - > currentDesktop ( ) , activeOutput ( ) ) ;
if ( desktop ) {
requestFocus ( desktop ) ;
}