diff options
author | Sam Spilsbury <sam.spilsbury@canonical.com> | 2010-12-02 11:37:44 +0800 |
---|---|---|
committer | Sam Spilsbury <sam.spilsbury@canonical.com> | 2010-12-02 11:37:44 +0800 |
commit | 1cb5c0d4c5b0afb6587fddd749e726019d81227a (patch) | |
tree | 2ead0ec2b8da0f6cb166aed1fe7aea44b743bd5e | |
parent | 0dae491d4845a9bbe925e626a44894bb1c6ec32c (diff) | |
download | compiz-with-glib-mainloop-1cb5c0d4c5b0afb6587fddd749e726019d81227a.tar.gz compiz-with-glib-mainloop-1cb5c0d4c5b0afb6587fddd749e726019d81227a.tar.bz2 |
Make w->managed () wrapable
-rw-r--r-- | include/core/window.h | 6 | ||||
-rw-r--r-- | src/window.cpp | 5 |
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; } |