add EffectWindow::windowType

This commit is contained in:
Thomas Lübking 2011-09-18 11:33:42 +02:00
parent f435f716b8
commit 51ef7518dd
3 changed files with 12 additions and 0 deletions

View file

@ -1612,6 +1612,11 @@ bool EffectWindowImpl::isDNDIcon() const
return toplevel->isDNDIcon();
}
NET::WindowType EffectWindowImpl::windowType() const
{
return toplevel->windowType();
}
bool EffectWindowImpl::isManaged() const
{
return dynamic_cast< const Client* >(toplevel) != NULL;

View file

@ -285,6 +285,7 @@ public:
virtual bool isNotification() const;
virtual bool isComboBox() const;
virtual bool isDNDIcon() const;
virtual NET::WindowType windowType() const;
virtual bool isManaged() const; // managed or override-redirect
virtual bool acceptsFocus() const;
virtual bool keepAbove() const;

View file

@ -41,6 +41,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <assert.h>
#include <limits.h>
#include <netwm.h>
class KLibrary;
class KConfigGroup;
@ -1212,6 +1213,11 @@ public:
* See _NET_WM_WINDOW_TYPE_DND at http://standards.freedesktop.org/wm-spec/wm-spec-latest.html .
*/
virtual bool isDNDIcon() const = 0;
/**
* Returns the NETWM window type
* See http://standards.freedesktop.org/wm-spec/wm-spec-latest.html .
*/
virtual NET::WindowType windowType() const = 0;
/**
* Returns whether the window is managed by KWin (it has control over its placement and other
* aspects, as opposed to override-redirect windows that are entirely handled by the application).