From e814a60045ca183b022e32e900f87687b6115215 Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Sat, 31 Jan 2015 19:45:47 +0100 Subject: [PATCH] Add isOnScreenDisplay to EffectWindow --- libkwineffects/kwineffects.cpp | 1 + libkwineffects/kwineffects.h | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/libkwineffects/kwineffects.cpp b/libkwineffects/kwineffects.cpp index 581ca5c42c..41f091f6f0 100644 --- a/libkwineffects/kwineffects.cpp +++ b/libkwineffects/kwineffects.cpp @@ -735,6 +735,7 @@ WINDOW_HELPER(bool, isDropdownMenu, "dropdownMenu") WINDOW_HELPER(bool, isPopupMenu, "popupMenu") WINDOW_HELPER(bool, isTooltip, "tooltip") WINDOW_HELPER(bool, isNotification, "notification") +WINDOW_HELPER(bool, isOnScreenDisplay, "onScreenDisplay") WINDOW_HELPER(bool, isComboBox, "comboBox") WINDOW_HELPER(bool, isDNDIcon, "dndIcon") WINDOW_HELPER(bool, isManaged, "managed") diff --git a/libkwineffects/kwineffects.h b/libkwineffects/kwineffects.h index c8edb683ca..bd39abfdca 100644 --- a/libkwineffects/kwineffects.h +++ b/libkwineffects/kwineffects.h @@ -1497,6 +1497,11 @@ class KWINEFFECTS_EXPORT EffectWindow : public QObject * See _NET_WM_WINDOW_TYPE_NOTIFICATION at http://standards.freedesktop.org/wm-spec/wm-spec-latest.html . */ Q_PROPERTY(bool notification READ isNotification) + /** + * Returns whether the window is an on screen display window + * using the non-standard _KDE_NET_WM_WINDOW_TYPE_ON_SCREEN_DISPLAY + */ + Q_PROPERTY(bool onScreenDisplay READ isOnScreenDisplay) /** * Returns whether the window is a combobox popup. * See _NET_WM_WINDOW_TYPE_COMBO at http://standards.freedesktop.org/wm-spec/wm-spec-latest.html . @@ -1786,6 +1791,11 @@ public: * See _NET_WM_WINDOW_TYPE_NOTIFICATION at http://standards.freedesktop.org/wm-spec/wm-spec-latest.html . */ bool isNotification() const; + /** + * Returns whether the window is an on screen display window + * using the non-standard _KDE_NET_WM_WINDOW_TYPE_ON_SCREEN_DISPLAY + */ + bool isOnScreenDisplay() const; /** * Returns whether the window is a combobox popup. * See _NET_WM_WINDOW_TYPE_COMBO at http://standards.freedesktop.org/wm-spec/wm-spec-latest.html .