summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2009-02-02 14:54:28 +0100
committerDanny Baumann <dannybaumann@web.de>2009-02-02 14:54:28 +0100
commit61d7383adcb8645f6dbdeb310d5ae2e4c00cda55 (patch)
tree1fee7d72df03fda3e7d3ca98491d1031f320a8af
parent9a4c126616e6d5ba4cbdd4d854d102ce0af7de4d (diff)
downloadextrawm-61d7383adcb8645f6dbdeb310d5ae2e4c00cda55.tar.gz
extrawm-61d7383adcb8645f6dbdeb310d5ae2e4c00cda55.tar.bz2
Don't require composite plugin.
-rw-r--r--extrawm.cpp16
1 files changed, 10 insertions, 6 deletions
diff --git a/extrawm.cpp b/extrawm.cpp
index e002d5b..afa264f 100644
--- a/extrawm.cpp
+++ b/extrawm.cpp
@@ -158,10 +158,15 @@ ExtraWMScreen::toggleRedirect (CompAction *action,
w = screen->findTopLevelWindow (xid);
if (w)
{
- if (CompositeWindow::get (w)->redirected ())
- CompositeWindow::get (w)->unredirect ();
- else
- CompositeWindow::get (w)->redirect ();
+ CompositeWindow *cWindow = CompositeWindow::get (w);
+
+ if (cWindow)
+ {
+ if (cWindow->redirected ())
+ cWindow->unredirect ();
+ else
+ cWindow->redirect ();
+ }
}
return TRUE;
@@ -269,8 +274,7 @@ ExtraWMWindow::ExtraWMWindow (CompWindow *window) :
bool
ExtraWMPluginVTable::init ()
{
- if (!CompPlugin::checkPluginABI ("core", CORE_ABIVERSION) ||
- !CompPlugin::checkPluginABI ("composite", COMPIZ_COMPOSITE_ABI))
+ if (!CompPlugin::checkPluginABI ("core", CORE_ABIVERSION))
return false;
return true;