Add isInputMethod in EffectWindow and do not dim input method window

wilder/Plasma/6.2
Weng Xuetian 2 years ago
parent aabc162632
commit 9e047059c1
No known key found for this signature in database
GPG Key ID: 8E8B898CBF2412F9
  1. 1
      src/libkwineffects/kwineffects.cpp
  2. 5
      src/libkwineffects/kwineffects.h
  3. 2
      src/plugins/diminactive/diminactive.cpp
  4. 6
      src/window.h

@ -955,6 +955,7 @@ WINDOW_HELPER(bool, isSkipSwitcher, skipSwitcher)
WINDOW_HELPER(bool, decorationHasAlpha, decorationHasAlpha)
WINDOW_HELPER(bool, isUnresponsive, unresponsive)
WINDOW_HELPER(QList<VirtualDesktop *>, desktops, desktops)
WINDOW_HELPER(bool, isInputMethod, isInputMethod)
#undef WINDOW_HELPER

@ -2302,6 +2302,11 @@ public:
*/
QUuid internalId() const;
/**
* @since 6.0
*/
bool isInputMethod() const;
/**
* Can be used to by effects to store arbitrary data in the EffectWindow.
*

@ -187,7 +187,7 @@ bool DimInactiveEffect::canDimWindow(const EffectWindow *w) const
return false;
}
if (w->isPopupWindow()) {
if (w->isPopupWindow() || w->isInputMethod()) {
return false;
}

@ -533,6 +533,12 @@ class KWIN_EXPORT Window : public QObject
*/
Q_PROPERTY(KWin::Tile *tile READ tile WRITE setTile NOTIFY tileChanged)
/**
* Returns whether this window is a input method window.
* This is only used for Wayland.
*/
Q_PROPERTY(bool inputMethod READ isInputMethod)
public:
~Window() override;

Loading…
Cancel
Save