<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>config-kwin.h.cmake</filename>
    </added>
    <added>
      <filename>effects/videorecord.cpp</filename>
    </added>
    <added>
      <filename>effects/videorecord.h</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -14,6 +14,15 @@ include_directories(
     ${CMAKE_CURRENT_SOURCE_DIR}/effects
     )
 
+include(UsePkgConfig)
+PKGCONFIG(libcaptury CAPTURY_INCLUDES CAPTURY_LINK_DIR CAPTURY_LDFLAGS CAPTURY_CFLAGS)
+if( CAPTURY_LDFLAGS )
+    SET( CAPTURY_FOUND TRUE )
+endif( CAPTURY_LDFLAGS )
+macro_bool_to_01( CAPTURY_FOUND HAVE_CAPTURY )
+
+configure_file(config-kwin.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-kwin.h )
+include_directories(${CMAKE_CURRENT_BINARY_DIR})
 
 
 ########### next target ###############
@@ -70,6 +79,13 @@ set(kwin_KDEINIT_SRCS
    effects/desktopchangeslide.cpp
    )
 
+if( CAPTURY_FOUND )
+   set(kwin_KDEINIT_SRCS ${kwin_KDEINIT_SRCS}
+   effects/videorecord.cpp
+   )
+    include_directories(${CAPTURY_INCLUDES})
+endif( CAPTURY_FOUND )
+
 if(HAVE_OPENGL)
    set(kwin_KDEINIT_SRCS ${kwin_KDEINIT_SRCS}
    effects/wavywindows.cpp
@@ -104,6 +120,10 @@ endif (X11_Xrender_FOUND)
 if (X11_Xfixes_FOUND)
   target_link_libraries(kdeinit_kwin ${X11_Xfixes_LIB})
 endif (X11_Xfixes_FOUND)
+if( HAVE_CAPTURY )
+  target_link_libraries(kdeinit_kwin ${CAPTURY_LDFLAGS})
+endif( HAVE_CAPTURY )
+
 
 install(TARGETS kdeinit_kwin  DESTINATION ${LIB_INSTALL_DIR} )
 </diff>
      <filename>CMakeLists.txt</filename>
    </modified>
    <modified>
      <diff>@@ -28,6 +28,9 @@ License. See the file &quot;COPYING&quot; for the exact licensing terms.
 #include &quot;effects/shakymove.h&quot;
 #include &quot;effects/shiftworkspaceup.h&quot;
 #include &quot;effects/showfps.h&quot;
+#ifdef HAVE_CAPTURY
+#include &quot;effects/videorecord.h&quot;
+#endif
 #ifdef HAVE_OPENGL
 #include &quot;effects/wavywindows.h&quot;
 #endif
@@ -128,6 +131,9 @@ EffectsHandler::EffectsHandler()
         return;
     KWinInternal::effects = this;
 
+#ifdef HAVE_CAPTURY
+    registerEffect(&quot;VideoRecord&quot;, new GenericEffectFactory&lt;VideoRecordEffect&gt;);
+#endif
     registerEffect(&quot;ShowFps&quot;, new GenericEffectFactory&lt;ShowFpsEffect&gt;);
     registerEffect(&quot;Zoom&quot;, new GenericEffectFactory&lt;ZoomEffect&gt;);
     registerEffect(&quot;PresentWindows&quot;, new GenericEffectFactory&lt;PresentWindowsEffect&gt;);</diff>
      <filename>effects.cpp</filename>
    </modified>
    <modified>
      <diff>@@ -14,6 +14,7 @@ License. See the file &quot;COPYING&quot; for the exact licensing terms.
 
 #include &lt;config.h&gt;
 #include &lt;config-X11.h&gt;
+#include &lt;config-kwin.h&gt;
 
 #include &lt;X11/Xlib.h&gt;
 </diff>
      <filename>utils.h</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>65a3812ce85b9e372d79adb1f76c8a267f26199d</id>
    </parent>
  </parents>
  <author>
    <name>Lubo&#353; Lu&#328;&#225;k</name>
    <email>l.lunak@kde.org</email>
  </author>
  <url>http://github.com/Zarin/kwin/commit/b5f1a7b1900c3aca54e0efecedae194c13ebb493</url>
  <id>b5f1a7b1900c3aca54e0efecedae194c13ebb493</id>
  <committed-date>2007-02-23T08:20:22-08:00</committed-date>
  <authored-date>2007-02-23T08:20:22-08:00</authored-date>
  <message>Add VideoRecordEffect for saving video captures.
Requires external lib to compile, see the videorecord.cpp .



git-svn-id: svn+ssh://svn.kde.org/home/kde/branches/work/kwin_composite@636625 283d02a7-25f6-0310-bc7c-ecb5cbfe19da</message>
  <tree>a4fbbc827270a5528bb754b073e7785fe583c051</tree>
  <committer>
    <name>Lubo&#353; Lu&#328;&#225;k</name>
    <email>l.lunak@kde.org</email>
  </committer>
</commit>
