[wayland] Focus to null X11 window when activating a Wayland client
Improves interaction with Xwayland clients.
This commit is contained in:
parent
377988eae9
commit
da4305c2fa
2 changed files with 7 additions and 0 deletions
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue