[wayland] Only activate ShellClient in takeFocus if it wantsInput

This ensures that e.g. virtual keyboards don't get activated.
icc-effect-5.14.5
Martin Gräßlin 2015-07-09 20:43:41 +02:00
parent 63bdc54b32
commit f304a49a58
1 changed files with 3 additions and 1 deletions

View File

@ -422,7 +422,9 @@ const QKeySequence &ShellClient::shortcut() const
void ShellClient::takeFocus()
{
setActive(true);
if (rules()->checkAcceptFocus(wantsInput())) {
setActive(true);
}
bool breakShowingDesktop = !keepAbove() && !isOnScreenDisplay();
if (breakShowingDesktop) {