[wayland] Focus to null X11 window when activating a Wayland client

Improves interaction with Xwayland clients.
This commit is contained in:
Martin Gräßlin 2015-07-07 16:15:58 +02:00
parent 377988eae9
commit da4305c2fa
2 changed files with 7 additions and 0 deletions

View file

@ -439,6 +439,12 @@ void ShellClient::takeFocus()
workspace()->setShowingDesktop(false);
}
void ShellClient::doSetActive()
{
StackingUpdatesBlocker blocker(workspace());
workspace()->focusToNull();
}
void ShellClient::updateWindowRules(Rules::Types selection)
{
Q_UNUSED(selection)

View file

@ -113,6 +113,7 @@ public:
protected:
void addDamage(const QRegion &damage) override;
bool belongsToSameApplication(const AbstractClient *other, bool active_hack) const override;
void doSetActive() override;
private Q_SLOTS:
void clientFullScreenChanged(bool fullScreen);