summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/core/window.h6
-rw-r--r--src/window.cpp5
2 files changed, 8 insertions, 3 deletions
diff --git a/include/core/window.h b/include/core/window.h
index 80f8ec6..7ef9737 100644
--- a/include/core/window.h
+++ b/include/core/window.h
@@ -255,6 +255,7 @@ class WindowInterface : public WrapableInterface<CompWindow, WindowInterface>
virtual bool alpha ();
virtual bool isFocussable ();
+ virtual bool managed ();
};
/**
@@ -262,7 +263,7 @@ class WindowInterface : public WrapableInterface<CompWindow, WindowInterface>
* window state, geometry, etc. between Compiz and the X server.
*/
class CompWindow :
- public WrapableHandler<WindowInterface, 18>,
+ public WrapableHandler<WindowInterface, 19>,
public PluginClassStorage
{
public:
@@ -362,8 +363,6 @@ class CompWindow :
void setShowDesktopMode (bool);
- bool managed ();
-
bool grabbed ();
int pendingMaps ();
@@ -547,6 +546,7 @@ class CompWindow :
WRAPABLE_HND (16, WindowInterface, bool, alpha);
WRAPABLE_HND (17, WindowInterface, bool, isFocussable);
+ WRAPABLE_HND (18, WindowInterface, bool, managed);
friend class PrivateWindow;
friend class CompScreen;
diff --git a/src/window.cpp b/src/window.cpp
index 4c6a0ab..e9b3260 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -4425,6 +4425,10 @@ bool
WindowInterface::isFocussable ()
WRAPABLE_DEF (isFocussable);
+bool
+WindowInterface::managed ()
+ WRAPABLE_DEF (managed);
+
Window
CompWindow::id ()
{
@@ -4652,6 +4656,7 @@ CompWindow::setShowDesktopMode (bool value)
bool
CompWindow::managed ()
{
+ WRAPABLE_HND_FUNC_RETURN (18, bool, managed);
return priv->managed;
}