Merge compiz:build-fixes into compiz:master

Proposed by Alberts Muktupāvels
Status: Merged
Approved by: Dmitry Shachnev
Approved revision: cc0f021b72b13e84b98e16103f91a2b42612c125
Merged at revision: 0266e86f6017bdd498a06b621168742817af395b
Proposed branch: compiz:build-fixes
Merge into: compiz:master
Diff against target: 1613 lines (+197/-72)
108 files modified
CMakeLists.txt (+4/-0)
cmake/CompizCommon.cmake (+4/-0)
cmake/CompizGSettings.cmake (+2/-2)
cmake/copy_file_install_user_env.cmake (+1/-5)
cmake/plugin_extensions/CompizGenGSettings.cmake (+2/-2)
cmake/recompile_gsettings_schemas_in_dir_user_env.cmake (+1/-4)
compizconfig/cmake/exec_setup_py_with_destdir.cmake (+0/-6)
compizconfig/compizconfig-python/setup.py (+1/-1)
compizconfig/gsettings/tests/test_gsettings_conformance.cpp (+1/-0)
compizconfig/gsettings/tests/test_gsettings_tests.cpp (+1/-1)
compizconfig/gsettings/tests/test_gsettings_wrapper.cpp (+2/-1)
compizconfig/libcompizconfig/tests/compizconfig_test_ccs_context.cpp (+1/-0)
compizconfig/libcompizconfig/tests/compizconfig_test_ccs_settings_upgrade_internal.cpp (+1/-1)
compizconfig/libcompizconfig/tests/compizconfig_test_ccs_text_file.cpp (+2/-1)
compizconfig/tests/compizconfig_backend_concept_test.cpp (+2/-1)
compizconfig/tests/compizconfig_backend_concept_test.h (+3/-1)
gtk/CMakeLists.txt (+0/-10)
gtk/window-decorator/gwd-theme-cairo.c (+1/-1)
gtk/window-decorator/tests/test_gwd_settings.cpp (+2/-1)
include/core/core.h (+1/-1)
plugins/addhelper/src/addhelper.cpp (+2/-0)
plugins/animation/src/animation.cpp (+1/-0)
plugins/animation/src/options.cpp (+2/-0)
plugins/annotate/src/annotate.cpp (+2/-0)
plugins/bench/src/bench.cpp (+1/-0)
plugins/blur/src/blur.cpp (+2/-0)
plugins/clone/src/clone.cpp (+2/-0)
plugins/colorfilter/src/colorfilter.cpp (+2/-0)
plugins/commands/src/commands.cpp (+1/-0)
plugins/composite/src/backbuffertracking/tests/test-composite-backbuffertracking.cpp (+2/-1)
plugins/composite/src/pixmapbinding/include/pixmapbinding.h (+1/-1)
plugins/crashhandler/src/crashhandler.cpp (+1/-0)
plugins/dbus/src/dbus.cpp (+2/-0)
plugins/decor/src/decor.cpp (+2/-0)
plugins/decor/src/pixmap-requests/tests/compiz_decor_pixmap_requests_mock.h (+1/-1)
plugins/decor/src/pixmap-requests/tests/integration/xorg-gtest/compiz_test_decor_pixmap_protocol_integration.cpp (+2/-1)
plugins/decor/src/pixmap-requests/tests/test-decor-pixmap-requests.cpp (+2/-1)
plugins/decor/tests/acceptance/xorg-gtest/compiz_decor_acceptance_tests.cpp (+2/-1)
plugins/expo/src/expo.cpp (+2/-0)
plugins/ezoom/src/ezoom.cpp (+2/-0)
plugins/fade/src/fade.cpp (+2/-0)
plugins/firepaint/src/firepaint.cpp (+2/-0)
plugins/freewins/src/freewins.cpp (+2/-0)
plugins/gnomecompat/src/gnomecompat.cpp (+2/-0)
plugins/grid/src/grabhandler/tests/test-grid-grab-handler.cpp (+2/-1)
plugins/grid/src/grid.cpp (+2/-1)
plugins/mag/src/mag.cpp (+2/-0)
plugins/matecompat/src/matecompat.cpp (+2/-0)
plugins/maximumize/src/maximumize.cpp (+2/-0)
plugins/mblur/src/mblur.cpp (+2/-0)
plugins/neg/src/neg.cpp (+2/-0)
plugins/obs/src/obs.cpp (+2/-0)
plugins/opacify/src/opacify.cpp (+2/-0)
plugins/opengl/include/opengl/programcache.h (+1/-1)
plugins/opengl/src/doublebuffer/tests/test-opengl-double-buffer.cpp (+2/-1)
plugins/opengl/src/glxtfpbind/tests/test-opengl-glx-tfp-bind.cpp (+2/-1)
plugins/opengl/src/screen.cpp (+3/-1)
plugins/opengl/src/texture.cpp (+2/-0)
plugins/put/src/put.cpp (+2/-0)
plugins/resize/src/resize.cpp (+2/-0)
plugins/ring/src/ring.cpp (+2/-0)
plugins/rotate/src/rotate.cpp (+2/-0)
plugins/scale/src/scale.cpp (+2/-0)
plugins/scaleaddon/src/scaleaddon.cpp (+2/-0)
plugins/scalefilter/src/scalefilter.cpp (+2/-0)
plugins/screenshot/src/screenshot.cpp (+2/-0)
plugins/shelf/src/shelf.cpp (+2/-0)
plugins/shift/src/shift.cpp (+2/-0)
plugins/showmouse/src/showmouse.cpp (+2/-0)
plugins/showrepaint/src/showrepaint.cpp (+2/-0)
plugins/snap/src/snap.cpp (+1/-0)
plugins/splash/src/splash.cpp (+2/-0)
plugins/staticswitcher/src/staticswitcher.cpp (+2/-0)
plugins/switcher/src/switcher.cpp (+2/-0)
plugins/thumbnail/src/thumbnail.cpp (+2/-0)
plugins/trailfocus/src/trailfocus.cpp (+2/-0)
plugins/vpswitch/src/vpswitch.cpp (+2/-0)
plugins/wall/src/wall.cpp (+2/-0)
plugins/wallpaper/src/wallpaper.cpp (+3/-1)
plugins/water/src/water.cpp (+1/-0)
plugins/widget/src/widget.cpp (+2/-0)
plugins/winrules/src/winrules.cpp (+2/-0)
plugins/wizard/src/wizard.cpp (+2/-0)
plugins/wobbly/src/wobbly.cpp (+2/-0)
plugins/workarounds/src/workarounds.cpp (+2/-0)
src/configurerequestbuffer.cpp (+3/-1)
src/event.cpp (+3/-1)
src/option/tests/option.cpp (+1/-1)
src/plugin.cpp (+2/-0)
src/plugin/tests/test-plugin.cpp (+2/-0)
src/point/tests/test-point.h (+1/-1)
src/privatescreen/tests/test-privatescreen.cpp (+1/-0)
src/screen.cpp (+3/-1)
src/session.cpp (+1/-1)
src/tests/test_configurerequestbuffer.cpp (+3/-1)
src/timer/tests/test-timer.h (+1/-1)
src/window.cpp (+3/-1)
src/window/constrainment/tests/test-window-constrainment.h (+1/-1)
src/window/extents/tests/test-window-extents.h (+1/-1)
src/window/geometry-saver/tests/test-window-geometry-saver.h (+1/-1)
src/window/geometry/tests/test-window-geometry.h (+1/-1)
tests/acceptance-tests/xorg-gtest/tests/compiz_acceptance_replace_current_wm.cpp (+1/-1)
tests/shared/gtest_shared_autodestroy.h (+3/-1)
tests/system/xorg-gtest/tests/compiz_xorg_gtest_configure_window.cpp (+3/-1)
tests/system/xorg-gtest/tests/compiz_xorg_gtest_ewmh.cpp (+1/-1)
tests/system/xorg-gtest/tests/compiz_xorg_gtest_icccm.cpp (+1/-1)
tests/system/xorg-gtest/tests/compiz_xorg_gtest_test_window_stacking.cpp (+2/-1)
tests/xorg-gtest/plugins/testhelper/src/testhelper.cpp (+3/-1)
Reviewer Review Type Date Requested Status
Compiz Maintainers Pending
Review via email: mp+428314@code.launchpad.net

Commit message

Fix build errors and warnings

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/CMakeLists.txt b/CMakeLists.txt
2index 26df7b8..0c1a425 100644
3--- a/CMakeLists.txt
4+++ b/CMakeLists.txt
5@@ -13,6 +13,10 @@ if (POLICY CMP0077)
6 cmake_policy (SET CMP0077 NEW)
7 endif ()
8
9+if (POLICY CMP0121)
10+ cmake_policy (SET CMP0121 NEW)
11+endif ()
12+
13 set (CMAKE_MODULE_PATH_ORIG ${CMAKE_MODULE_PATH})
14 set (COMPIZ_CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
15 set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${COMPIZ_CMAKE_MODULE_PATH})
16diff --git a/cmake/CompizCommon.cmake b/cmake/CompizCommon.cmake
17index 766b22f..5bfb19c 100644
18--- a/cmake/CompizCommon.cmake
19+++ b/cmake/CompizCommon.cmake
20@@ -8,6 +8,10 @@ if (POLICY CMP0077)
21 cmake_policy (SET CMP0077 NEW)
22 endif ()
23
24+if (POLICY CMP0121)
25+ cmake_policy (SET CMP0121 NEW)
26+endif ()
27+
28 find_package (PkgConfig 0.29.1 REQUIRED)
29
30 if ("${CMAKE_CURRENT_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_BINARY_DIR}")
31diff --git a/cmake/CompizGSettings.cmake b/cmake/CompizGSettings.cmake
32index 76bbb01..1cf7c8f 100644
33--- a/cmake/CompizGSettings.cmake
34+++ b/cmake/CompizGSettings.cmake
35@@ -23,7 +23,7 @@ if (PKG_CONFIG_TOOL AND NOT GSETTINGS_GLOBAL_INSTALL_DIR_SET)
36
37 # find out where schemas need to go if we are installing them systemwide
38 execute_process (COMMAND ${PKG_CONFIG_TOOL} glib-2.0 --variable prefix OUTPUT_VARIABLE GSETTINGS_GLIB_PREFIX OUTPUT_STRIP_TRAILING_WHITESPACE)
39- set (GSETTINGS_GLOBAL_INSTALL_DIR "${GSETTINGS_GLIB_PREFIX}/share/glib-2.0/schemas/")
40+ set (GSETTINGS_GLOBAL_INSTALL_DIR "${GSETTINGS_GLIB_PREFIX}/share/glib-2.0/schemas")
41
42 set_property (GLOBAL
43 PROPERTY GSETTINGS_GLOBAL_INSTALL_DIR
44@@ -64,7 +64,7 @@ function (compiz_install_gsettings_schema _src _dst)
45
46 # find out where schemas need to go if we are installing them systemwide
47 execute_process (COMMAND ${PKG_CONFIG_TOOL} glib-2.0 --variable prefix OUTPUT_VARIABLE GSETTINGS_GLIB_PREFIX OUTPUT_STRIP_TRAILING_WHITESPACE)
48- SET (GSETTINGS_GLOBAL_INSTALL_DIR "${GSETTINGS_GLIB_PREFIX}/share/glib-2.0/schemas/")
49+ SET (GSETTINGS_GLOBAL_INSTALL_DIR "${GSETTINGS_GLIB_PREFIX}/share/glib-2.0/schemas")
50
51 if (PKG_CONFIG_TOOL AND
52 GLIB_COMPILE_SCHEMAS AND NOT
53diff --git a/cmake/copy_file_install_user_env.cmake b/cmake/copy_file_install_user_env.cmake
54index 3a87982..1c6cf8c 100644
55--- a/cmake/copy_file_install_user_env.cmake
56+++ b/cmake/copy_file_install_user_env.cmake
57@@ -1,10 +1,6 @@
58-set (FILE "" CACHE FORCE "File to Install")
59-set (INSTALLDIR_USER "" CACHE FORCE "Installation dir if user")
60-set (INSTALLDIR_ROOT "" CACHE FORCE "Installation dir if root")
61-
62 if (ENV{USER})
63 set (USERNAME $ENV{USER})
64-else (ENV${USER})
65+else (ENV{USER})
66 set (USERNAME "user")
67 endif (ENV{USER})
68
69diff --git a/cmake/plugin_extensions/CompizGenGSettings.cmake b/cmake/plugin_extensions/CompizGenGSettings.cmake
70index b9853fd..c769c44 100644
71--- a/cmake/plugin_extensions/CompizGenGSettings.cmake
72+++ b/cmake/plugin_extensions/CompizGenGSettings.cmake
73@@ -4,7 +4,7 @@ macro (compiz_gsettings_prepare_install_dirs)
74 # package
75 if ("${COMPIZ_PLUGIN_INSTALL_TYPE}" STREQUAL "package")
76 if (NOT COMPIZ_INSTALL_GSETTINGS_SCHEMA_DIR)
77- set (PLUGIN_SCHEMADIR "${datadir}/glib-2.0/schemas/")
78+ set (PLUGIN_SCHEMADIR "${datadir}/glib-2.0/schemas")
79 else (NOT COMPIZ_INSTALL_GSETTINGS_SCHEMA_DIR)
80 set (PLUGIN_SCHEMADIR "${COMPIZ_INSTALL_GSETTINGS_SCHEMA_DIR}")
81 endif (NOT COMPIZ_INSTALL_GSETTINGS_SCHEMA_DIR)
82@@ -12,7 +12,7 @@ macro (compiz_gsettings_prepare_install_dirs)
83 elseif ("${COMPIZ_PLUGIN_INSTALL_TYPE}" STREQUAL "compiz" OR
84 "$ENV{BUILD_GLOBAL}" STREQUAL "true")
85 if (NOT COMPIZ_INSTALL_GSETTINGS_SCHEMA_DIR)
86- set (PLUGIN_SCHEMADIR "${COMPIZ_PREFIX}/share/glib-2.0/schemas/")
87+ set (PLUGIN_SCHEMADIR "${COMPIZ_PREFIX}/share/glib-2.0/schemas")
88 else (NOT COMPIZ_INSTALL_GSETTINGS_SCHEMA_DIR)
89 set (PLUGIN_SCHEMADIR "${COMPIZ_INSTALL_GSETTINGS_SCHEMA_DIR}")
90 endif (NOT COMPIZ_INSTALL_GSETTINGS_SCHEMA_DIR)
91diff --git a/cmake/recompile_gsettings_schemas_in_dir_user_env.cmake b/cmake/recompile_gsettings_schemas_in_dir_user_env.cmake
92index de26d64..971e90c 100644
93--- a/cmake/recompile_gsettings_schemas_in_dir_user_env.cmake
94+++ b/cmake/recompile_gsettings_schemas_in_dir_user_env.cmake
95@@ -1,9 +1,6 @@
96-set (SCHEMADIR_USER "" CACHE FORCE "Installation dir if user")
97-set (SCHEMADIR_ROOT "" CACHE FORCE "Installation dir if root")
98-
99 if (ENV{USER})
100 set (USERNAME $ENV{USER})
101-else (ENV${USER})
102+else (ENV{USER})
103 set (USERNAME "user")
104 endif (ENV{USER})
105
106diff --git a/compizconfig/cmake/exec_setup_py_with_destdir.cmake b/compizconfig/cmake/exec_setup_py_with_destdir.cmake
107index fc03188..da69c83 100644
108--- a/compizconfig/cmake/exec_setup_py_with_destdir.cmake
109+++ b/compizconfig/cmake/exec_setup_py_with_destdir.cmake
110@@ -1,9 +1,3 @@
111-set (PY_EXECUTABLE "" CACHE FORCE "Python executable")
112-set (WDIR "" CACHE FORCE "Working Directory")
113-set (PREFIX "" CACHE FORCE "Prefix")
114-set (SETUP "" CACHE FORCE "Path to setup.py")
115-set (VERSION "" CACHE FORCE "Version")
116-
117 set (EXTRAARGS "")
118 set (BUILD_DEB $ENV{COMPIZ_DEB_BUILD})
119
120diff --git a/compizconfig/compizconfig-python/setup.py b/compizconfig/compizconfig-python/setup.py
121index db60746..f971423 100644
122--- a/compizconfig/compizconfig-python/setup.py
123+++ b/compizconfig/compizconfig-python/setup.py
124@@ -16,7 +16,7 @@ pkg_config_environ["PKG_CONFIG_PATH"] = os.getcwd () + "/../libcompizconfig:" +
125
126 pkgconfig_libs = subprocess.Popen (["pkg-config", "--libs", "libcompizconfig_internal"], stdout=subprocess.PIPE, env=pkg_config_environ, stderr=open(os.devnull, 'w')).communicate ()[0]
127
128-if len (pkgconfig_libs) is 0:
129+if len (pkgconfig_libs) == 0:
130 print ("CompizConfig Python [ERROR]: No libcompizconfig_internal.pc found in the pkg-config search path")
131 print ("Ensure that libcompizonfig is installed or libcompizconfig.pc is in your $PKG_CONFIG_PATH")
132 exit (1);
133diff --git a/compizconfig/gsettings/tests/test_gsettings_conformance.cpp b/compizconfig/gsettings/tests/test_gsettings_conformance.cpp
134index 9373736..75b1fb7 100644
135--- a/compizconfig/gsettings/tests/test_gsettings_conformance.cpp
136+++ b/compizconfig/gsettings/tests/test_gsettings_conformance.cpp
137@@ -42,6 +42,7 @@
138 #include "compizconfig_ccs_gsettings_settings_env_test.h"
139 #include "compizconfig_ccs_integration_mock.h"
140
141+using namespace boost::placeholders;
142 using ::testing::AtLeast;
143 using ::testing::Pointee;
144 using ::testing::ReturnNull;
145diff --git a/compizconfig/gsettings/tests/test_gsettings_tests.cpp b/compizconfig/gsettings/tests/test_gsettings_tests.cpp
146index f7385cb..c780368 100644
147--- a/compizconfig/gsettings/tests/test_gsettings_tests.cpp
148+++ b/compizconfig/gsettings/tests/test_gsettings_tests.cpp
149@@ -1,7 +1,7 @@
150 #include <tr1/tuple>
151
152 #include <boost/function.hpp>
153-#include <boost/bind.hpp>
154+#include <boost/bind/bind.hpp>
155 #include <boost/shared_ptr.hpp>
156
157 #include <boost/shared_ptr.hpp>
158diff --git a/compizconfig/gsettings/tests/test_gsettings_wrapper.cpp b/compizconfig/gsettings/tests/test_gsettings_wrapper.cpp
159index 2dbfe4a..642b456 100644
160--- a/compizconfig/gsettings/tests/test_gsettings_wrapper.cpp
161+++ b/compizconfig/gsettings/tests/test_gsettings_wrapper.cpp
162@@ -5,7 +5,7 @@
163
164 #include <boost/shared_ptr.hpp>
165 #include <boost/function.hpp>
166-#include <boost/bind.hpp>
167+#include <boost/bind/bind.hpp>
168
169 #include <glib-object.h>
170 #include <gio/gio.h>
171@@ -16,6 +16,7 @@
172
173 #include "test_gsettings_tests.h"
174
175+using namespace boost::placeholders;
176 using ::testing::NotNull;
177 using ::testing::IsNull;
178 using ::testing::Eq;
179diff --git a/compizconfig/libcompizconfig/tests/compizconfig_test_ccs_context.cpp b/compizconfig/libcompizconfig/tests/compizconfig_test_ccs_context.cpp
180index fcdb90f..7701e38 100644
181--- a/compizconfig/libcompizconfig/tests/compizconfig_test_ccs_context.cpp
182+++ b/compizconfig/libcompizconfig/tests/compizconfig_test_ccs_context.cpp
183@@ -20,6 +20,7 @@
184 #include "compizconfig_ccs_backend_mock.h"
185 #include "compizconfig_ccs_context_mock.h"
186
187+using namespace boost::placeholders;
188 using ::testing::_;
189 using ::testing::AtLeast;
190 using ::testing::SetArgPointee;
191diff --git a/compizconfig/libcompizconfig/tests/compizconfig_test_ccs_settings_upgrade_internal.cpp b/compizconfig/libcompizconfig/tests/compizconfig_test_ccs_settings_upgrade_internal.cpp
192index 747e121..202c986 100644
193--- a/compizconfig/libcompizconfig/tests/compizconfig_test_ccs_settings_upgrade_internal.cpp
194+++ b/compizconfig/libcompizconfig/tests/compizconfig_test_ccs_settings_upgrade_internal.cpp
195@@ -27,7 +27,7 @@
196
197 #include <boost/make_shared.hpp>
198 #include <boost/shared_ptr.hpp>
199-#include <boost/bind.hpp>
200+#include <boost/bind/bind.hpp>
201
202 #include <ccs.h>
203
204diff --git a/compizconfig/libcompizconfig/tests/compizconfig_test_ccs_text_file.cpp b/compizconfig/libcompizconfig/tests/compizconfig_test_ccs_text_file.cpp
205index 2f23a02..7edb64b 100644
206--- a/compizconfig/libcompizconfig/tests/compizconfig_test_ccs_text_file.cpp
207+++ b/compizconfig/libcompizconfig/tests/compizconfig_test_ccs_text_file.cpp
208@@ -4,7 +4,7 @@
209 #include <gmock/gmock.h>
210
211 #include <boost/shared_ptr.hpp>
212-#include <boost/bind.hpp>
213+#include <boost/bind/bind.hpp>
214
215 #include <ccs.h>
216
217@@ -14,6 +14,7 @@
218 #include <gtest_shared_characterwrapper.h>
219 #include <gtest_shared_autodestroy.h>
220
221+using namespace boost::placeholders;
222 using ::testing::_;
223 using ::testing::Return;
224 using ::testing::Eq;
225diff --git a/compizconfig/tests/compizconfig_backend_concept_test.cpp b/compizconfig/tests/compizconfig_backend_concept_test.cpp
226index b7c51d5..553e4fb 100644
227--- a/compizconfig/tests/compizconfig_backend_concept_test.cpp
228+++ b/compizconfig/tests/compizconfig_backend_concept_test.cpp
229@@ -29,13 +29,14 @@
230 #include <compizconfig_ccs_setting_stub.h>
231
232 #include <boost/function.hpp>
233-#include <boost/bind.hpp>
234+#include <boost/bind/bind.hpp>
235 #include <boost/shared_ptr.hpp>
236 #include <boost/make_shared.hpp>
237
238 #include <compizconfig_backend_concept_test_internal.h>
239 #include <compizconfig_backend_concept_test_environment_interface.h>
240
241+using namespace boost::placeholders;
242 using ::testing::NiceMock;
243 using ::testing::Return;
244 using ::testing::ReturnNull;
245diff --git a/compizconfig/tests/compizconfig_backend_concept_test.h b/compizconfig/tests/compizconfig_backend_concept_test.h
246index 5b5c346..abd7707 100644
247--- a/compizconfig/tests/compizconfig_backend_concept_test.h
248+++ b/compizconfig/tests/compizconfig_backend_concept_test.h
249@@ -41,7 +41,7 @@
250 #include <boost/shared_ptr.hpp>
251 #include <boost/make_shared.hpp>
252 #include <boost/function.hpp>
253-#include <boost/bind.hpp>
254+#include <boost/bind/bind.hpp>
255 #include <boost/noncopyable.hpp>
256
257 #include <gtest/gtest.h>
258@@ -67,6 +67,8 @@
259 #include "compizconfig_backend_concept_test_internal.h"
260 #include "compizconfig_backend_concept_test_environment_interface.h"
261
262+using namespace boost::placeholders;
263+
264 namespace cci = compiz::config::impl;
265 namespace cc = compiz::config;
266
267diff --git a/gtk/CMakeLists.txt b/gtk/CMakeLists.txt
268index ad2c9d8..7985de7 100644
269--- a/gtk/CMakeLists.txt
270+++ b/gtk/CMakeLists.txt
271@@ -14,16 +14,6 @@ if (USE_GTK)
272 pangocairo
273 )
274 if (GTK_WINDOW_DECORATOR_FOUND)
275- set (CMAKE_REQUIRED_FLAGS ${GTK_WINDOW_DECORATOR_CFLAGS})
276- set (CMAKE_REQUIRED_LIBRARIES ${GTK_WINDOW_DECORATOR_LIBRARIES})
277- list (FIND CMAKE_REQUIRED_FLAGS "-D_REENTRANT" REENTRANT_INDEX)
278- if (REENTRANT_INDEX)
279- list (REMOVE_AT CMAKE_REQUIRED_FLAGS REENTRANT_INDEX)
280- list (APPEND CMAKE_REQUIRED_FLAGS "-D_REENTRANT=1")
281- endif (REENTRANT_INDEX)
282- set (CMAKE_REQUIRED_FLAGS "")
283- set (CMAKE_REQUIRED_LIBRARIES "")
284-
285 if (USE_METACITY)
286 pkg_check_modules (LIBMETACITY libmetacity>=3.22.0)
287
288diff --git a/gtk/window-decorator/gwd-theme-cairo.c b/gtk/window-decorator/gwd-theme-cairo.c
289index 85f4202..a14aee3 100644
290--- a/gtk/window-decorator/gwd-theme-cairo.c
291+++ b/gtk/window-decorator/gwd-theme-cairo.c
292@@ -1036,7 +1036,7 @@ gwd_theme_cairo_get_button_position (GWDTheme *theme,
293 gint position = 0;
294 gint button = 0;
295
296- while (button != i) {
297+ while (button < i) {
298 if (button_present (decor, button))
299 position++;
300 button++;
301diff --git a/gtk/window-decorator/tests/test_gwd_settings.cpp b/gtk/window-decorator/tests/test_gwd_settings.cpp
302index efd0904..504bd14 100644
303--- a/gtk/window-decorator/tests/test_gwd_settings.cpp
304+++ b/gtk/window-decorator/tests/test_gwd_settings.cpp
305@@ -24,7 +24,7 @@
306 #include <gtest/gtest.h>
307 #include <gmock/gmock.h>
308
309-#include <boost/bind.hpp>
310+#include <boost/bind/bind.hpp>
311 #include <boost/function.hpp>
312 #include <boost/shared_ptr.hpp>
313 #include <boost/make_shared.hpp>
314@@ -41,6 +41,7 @@
315
316 #include "gwd-settings.h"
317
318+using namespace boost::placeholders;
319 using ::testing::Eq;
320 using ::testing::Action;
321 using ::testing::Values;
322diff --git a/include/core/core.h b/include/core/core.h
323index 3cfe748..915385d 100644
324--- a/include/core/core.h
325+++ b/include/core/core.h
326@@ -52,7 +52,7 @@ typedef XBool Bool;
327 #endif
328
329 #include <boost/function.hpp>
330-#include <boost/bind.hpp>
331+#include <boost/bind/bind.hpp>
332 #include <boost/foreach.hpp>
333 #define foreach BOOST_FOREACH
334
335diff --git a/plugins/addhelper/src/addhelper.cpp b/plugins/addhelper/src/addhelper.cpp
336index 90771e0..3c658e9 100644
337--- a/plugins/addhelper/src/addhelper.cpp
338+++ b/plugins/addhelper/src/addhelper.cpp
339@@ -28,6 +28,8 @@
340
341 #include "addhelper.h"
342
343+using namespace boost::placeholders;
344+
345 COMPIZ_PLUGIN_20090315 (addhelper, AddPluginVTable);
346
347 /* Walk through all windows of the screen and adjust them if they
348diff --git a/plugins/animation/src/animation.cpp b/plugins/animation/src/animation.cpp
349index e6eb809..0087cc5 100644
350--- a/plugins/animation/src/animation.cpp
351+++ b/plugins/animation/src/animation.cpp
352@@ -91,6 +91,7 @@
353 #include <assert.h>
354 #include "private.h"
355
356+using namespace boost::placeholders;
357 using namespace compiz::core;
358
359 class AnimPluginVTable :
360diff --git a/plugins/animation/src/options.cpp b/plugins/animation/src/options.cpp
361index ce1a98b..a2a8e89 100644
362--- a/plugins/animation/src/options.cpp
363+++ b/plugins/animation/src/options.cpp
364@@ -27,6 +27,8 @@
365
366 #include "private.h"
367
368+using namespace boost::placeholders;
369+
370 // ================= Option Related Functions =================
371
372 AnimEvent win2AnimEventMap[WindowEventNum] =
373diff --git a/plugins/annotate/src/annotate.cpp b/plugins/annotate/src/annotate.cpp
374index 4f8285f..b80bfe5 100644
375--- a/plugins/annotate/src/annotate.cpp
376+++ b/plugins/annotate/src/annotate.cpp
377@@ -25,6 +25,8 @@
378
379 #include "annotate.h"
380
381+using namespace boost::placeholders;
382+
383 COMPIZ_PLUGIN_20090315 (annotate, AnnoPluginVTable)
384
385 #define DEG2RAD (M_PI / 180.0f)
386diff --git a/plugins/bench/src/bench.cpp b/plugins/bench/src/bench.cpp
387index 57e7909..819f5d9 100644
388--- a/plugins/bench/src/bench.cpp
389+++ b/plugins/bench/src/bench.cpp
390@@ -25,6 +25,7 @@
391
392 #include "bench.h"
393
394+using namespace boost::placeholders;
395 using namespace compiz::core;
396
397 COMPIZ_PLUGIN_20090315 (bench, BenchPluginVTable)
398diff --git a/plugins/blur/src/blur.cpp b/plugins/blur/src/blur.cpp
399index 916d1f0..3533985 100644
400--- a/plugins/blur/src/blur.cpp
401+++ b/plugins/blur/src/blur.cpp
402@@ -32,6 +32,8 @@
403 */
404 #define INDEPENDENT_TEX_SUPPORTED 0
405
406+using namespace boost::placeholders;
407+
408 COMPIZ_PLUGIN_20090315 (blur, BlurPluginVTable)
409
410 /* pascal triangle based kernel generator */
411diff --git a/plugins/clone/src/clone.cpp b/plugins/clone/src/clone.cpp
412index 1b5eb97..967323a 100644
413--- a/plugins/clone/src/clone.cpp
414+++ b/plugins/clone/src/clone.cpp
415@@ -30,6 +30,8 @@
416
417 #include "clone.h"
418
419+using namespace boost::placeholders;
420+
421 COMPIZ_PLUGIN_20090315 (clone, ClonePluginVTable);
422
423 static void togglePaintFunctions (CloneScreen *cs, bool enabled)
424diff --git a/plugins/colorfilter/src/colorfilter.cpp b/plugins/colorfilter/src/colorfilter.cpp
425index 4dd9cde..e2711fa 100644
426--- a/plugins/colorfilter/src/colorfilter.cpp
427+++ b/plugins/colorfilter/src/colorfilter.cpp
428@@ -25,6 +25,8 @@
429 #include <algorithm>
430 #include <boost/algorithm/string.hpp>
431
432+using namespace boost::placeholders;
433+
434 COMPIZ_PLUGIN_20090315 (colorfilter, ColorfilterPluginVTable);
435
436 /* Actions handling functions ----------------------------------------------- */
437diff --git a/plugins/commands/src/commands.cpp b/plugins/commands/src/commands.cpp
438index 1075775..a253efc 100644
439--- a/plugins/commands/src/commands.cpp
440+++ b/plugins/commands/src/commands.cpp
441@@ -28,6 +28,7 @@
442 #include "core/abiversion.h"
443 #include "core/screen.h"
444
445+using namespace boost::placeholders;
446
447 COMPIZ_PLUGIN_20090315 (commands, CommandsPluginVTable);
448
449diff --git a/plugins/composite/src/backbuffertracking/tests/test-composite-backbuffertracking.cpp b/plugins/composite/src/backbuffertracking/tests/test-composite-backbuffertracking.cpp
450index 2003a63..015fb9c 100644
451--- a/plugins/composite/src/backbuffertracking/tests/test-composite-backbuffertracking.cpp
452+++ b/plugins/composite/src/backbuffertracking/tests/test-composite-backbuffertracking.cpp
453@@ -22,7 +22,7 @@
454 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
455 * DEALINGS IN THE SOFTWARE.
456 */
457-#include <boost/bind.hpp>
458+#include <boost/bind/bind.hpp>
459
460 #include <gtest/gtest.h>
461 #include <gmock/gmock.h>
462@@ -32,6 +32,7 @@
463
464 #include "backbuffertracking.h"
465
466+using namespace boost::placeholders;
467 using ::testing::NiceMock;
468 using ::testing::_;
469 using ::testing::AtLeast;
470diff --git a/plugins/composite/src/pixmapbinding/include/pixmapbinding.h b/plugins/composite/src/pixmapbinding/include/pixmapbinding.h
471index feb3040..fe43611 100644
472--- a/plugins/composite/src/pixmapbinding/include/pixmapbinding.h
473+++ b/plugins/composite/src/pixmapbinding/include/pixmapbinding.h
474@@ -33,7 +33,7 @@
475 #include <memory>
476 #include <boost/shared_ptr.hpp>
477 #include <boost/function.hpp>
478-#include <boost/bind.hpp>
479+#include <boost/bind/bind.hpp>
480
481 #include <core/size.h>
482
483diff --git a/plugins/crashhandler/src/crashhandler.cpp b/plugins/crashhandler/src/crashhandler.cpp
484index a67c749..a2174d9 100644
485--- a/plugins/crashhandler/src/crashhandler.cpp
486+++ b/plugins/crashhandler/src/crashhandler.cpp
487@@ -29,6 +29,7 @@
488
489 #include "crashhandler.h"
490
491+using namespace boost::placeholders;
492
493 COMPIZ_PLUGIN_20090315 (crashhandler, CrashPluginVTable)
494
495diff --git a/plugins/dbus/src/dbus.cpp b/plugins/dbus/src/dbus.cpp
496index e390534..50abc10 100644
497--- a/plugins/dbus/src/dbus.cpp
498+++ b/plugins/dbus/src/dbus.cpp
499@@ -29,6 +29,8 @@
500
501 #include "dbus.h"
502
503+using namespace boost::placeholders;
504+
505 COMPIZ_PLUGIN_20090315 (dbus, DbusPluginVTable);
506
507 CompOption::Vector emptyList;
508diff --git a/plugins/decor/src/decor.cpp b/plugins/decor/src/decor.cpp
509index 5f01d5a..65ed6e4 100644
510--- a/plugins/decor/src/decor.cpp
511+++ b/plugins/decor/src/decor.cpp
512@@ -40,6 +40,8 @@
513 #include <X11/Xatom.h>
514 #include <X11/extensions/shape.h>
515
516+using namespace boost::placeholders;
517+
518 COMPIZ_PLUGIN_20090315 (decor, DecorPluginVTable)
519
520 namespace cwe = compiz::window::extents;
521diff --git a/plugins/decor/src/pixmap-requests/tests/compiz_decor_pixmap_requests_mock.h b/plugins/decor/src/pixmap-requests/tests/compiz_decor_pixmap_requests_mock.h
522index e522bb3..4a49235 100644
523--- a/plugins/decor/src/pixmap-requests/tests/compiz_decor_pixmap_requests_mock.h
524+++ b/plugins/decor/src/pixmap-requests/tests/compiz_decor_pixmap_requests_mock.h
525@@ -28,7 +28,7 @@
526 #define _COMPIZ_DECOR_PIXMAP_REQUESTS_MOCK_H
527
528 #include <gmock/gmock.h>
529-#include <boost/bind.hpp>
530+#include <boost/bind/bind.hpp>
531
532 #include <X11/Xlib.h>
533 #include "pixmap-requests.h"
534diff --git a/plugins/decor/src/pixmap-requests/tests/integration/xorg-gtest/compiz_test_decor_pixmap_protocol_integration.cpp b/plugins/decor/src/pixmap-requests/tests/integration/xorg-gtest/compiz_test_decor_pixmap_protocol_integration.cpp
535index d9b2e16..efc8baa 100644
536--- a/plugins/decor/src/pixmap-requests/tests/integration/xorg-gtest/compiz_test_decor_pixmap_protocol_integration.cpp
537+++ b/plugins/decor/src/pixmap-requests/tests/integration/xorg-gtest/compiz_test_decor_pixmap_protocol_integration.cpp
538@@ -24,7 +24,7 @@
539 #include <gmock/gmock.h>
540
541 #include <boost/function.hpp>
542-#include <boost/bind.hpp>
543+#include <boost/bind/bind.hpp>
544
545 #include <boost/shared_ptr.hpp>
546 #include <boost/make_shared.hpp>
547@@ -45,6 +45,7 @@ namespace ct = compiz::testing;
548 namespace cd = compiz::decor;
549 namespace cdp = compiz::decor::protocol;
550
551+using namespace boost::placeholders;
552 using ::testing::AtLeast;
553 using ::testing::ReturnNull;
554 using ::testing::Return;
555diff --git a/plugins/decor/src/pixmap-requests/tests/test-decor-pixmap-requests.cpp b/plugins/decor/src/pixmap-requests/tests/test-decor-pixmap-requests.cpp
556index 53dfbb1..ba9504a 100644
557--- a/plugins/decor/src/pixmap-requests/tests/test-decor-pixmap-requests.cpp
558+++ b/plugins/decor/src/pixmap-requests/tests/test-decor-pixmap-requests.cpp
559@@ -25,13 +25,14 @@
560
561 #include <gtest/gtest.h>
562 #include <gmock/gmock.h>
563-#include <boost/bind.hpp>
564+#include <boost/bind/bind.hpp>
565 #include <iostream>
566
567 #include <X11/Xlib.h>
568 #include "pixmap-requests.h"
569 #include "compiz_decor_pixmap_requests_mock.h"
570
571+using namespace boost::placeholders;
572 using ::testing::AtLeast;
573 using ::testing::Pointee;
574 using ::testing::Return;
575diff --git a/plugins/decor/tests/acceptance/xorg-gtest/compiz_decor_acceptance_tests.cpp b/plugins/decor/tests/acceptance/xorg-gtest/compiz_decor_acceptance_tests.cpp
576index 9b14385..be7f99c 100644
577--- a/plugins/decor/tests/acceptance/xorg-gtest/compiz_decor_acceptance_tests.cpp
578+++ b/plugins/decor/tests/acceptance/xorg-gtest/compiz_decor_acceptance_tests.cpp
579@@ -29,7 +29,7 @@
580 #include <boost/shared_array.hpp>
581 #include <boost/shared_ptr.hpp>
582
583-#include <boost/bind.hpp>
584+#include <boost/bind/bind.hpp>
585
586 #include <X11/Xlib.h>
587 #include <X11/Xatom.h>
588@@ -49,6 +49,7 @@
589 namespace xt = xorg::testing;
590 namespace ct = compiz::testing;
591
592+using namespace boost::placeholders;
593 using ::testing::AllOf;
594 using ::testing::AtLeast;
595 using ::testing::Eq;
596diff --git a/plugins/expo/src/expo.cpp b/plugins/expo/src/expo.cpp
597index 802071b..bb310a5 100644
598--- a/plugins/expo/src/expo.cpp
599+++ b/plugins/expo/src/expo.cpp
600@@ -35,6 +35,8 @@
601 #endif
602 #include <X11/cursorfont.h>
603
604+using namespace boost::placeholders;
605+
606 COMPIZ_PLUGIN_20090315 (expo, ExpoPluginVTable);
607
608 #define sigmoid(x) (1.0f / (1.0f + exp (-11.0f * ((x) - 0.5f))))
609diff --git a/plugins/ezoom/src/ezoom.cpp b/plugins/ezoom/src/ezoom.cpp
610index c9a071f..12f2842 100755
611--- a/plugins/ezoom/src/ezoom.cpp
612+++ b/plugins/ezoom/src/ezoom.cpp
613@@ -74,6 +74,8 @@
614
615 #include "ezoom.h"
616
617+using namespace boost::placeholders;
618+
619 COMPIZ_PLUGIN_20090315 (ezoom, ZoomPluginVTable)
620
621
622diff --git a/plugins/fade/src/fade.cpp b/plugins/fade/src/fade.cpp
623index 21c3d68..c150a2f 100644
624--- a/plugins/fade/src/fade.cpp
625+++ b/plugins/fade/src/fade.cpp
626@@ -26,6 +26,8 @@
627 #include "fade.h"
628 #include <core/atoms.h>
629
630+using namespace boost::placeholders;
631+
632 COMPIZ_PLUGIN_20090315 (fade, FadePluginVTable);
633
634 bool
635diff --git a/plugins/firepaint/src/firepaint.cpp b/plugins/firepaint/src/firepaint.cpp
636index 863a4d7..39c986d 100644
637--- a/plugins/firepaint/src/firepaint.cpp
638+++ b/plugins/firepaint/src/firepaint.cpp
639@@ -21,6 +21,8 @@
640
641 #include "firepaint.h"
642
643+using namespace boost::placeholders;
644+
645 COMPIZ_PLUGIN_20090315 (firepaint, FirePluginVTable);
646
647 /* 3 vertices per triangle, 2 triangles per particle */
648diff --git a/plugins/freewins/src/freewins.cpp b/plugins/freewins/src/freewins.cpp
649index 8f0a652..edab457 100644
650--- a/plugins/freewins/src/freewins.cpp
651+++ b/plugins/freewins/src/freewins.cpp
652@@ -50,6 +50,8 @@
653
654 #include "freewins.h"
655
656+using namespace boost::placeholders;
657+
658 COMPIZ_PLUGIN_20090315 (freewins, FWPluginVTable);
659
660 /* Information on window resize */
661diff --git a/plugins/gnomecompat/src/gnomecompat.cpp b/plugins/gnomecompat/src/gnomecompat.cpp
662index ba85607..f0445c5 100644
663--- a/plugins/gnomecompat/src/gnomecompat.cpp
664+++ b/plugins/gnomecompat/src/gnomecompat.cpp
665@@ -25,6 +25,8 @@
666
667 #include "gnomecompat.h"
668
669+using namespace boost::placeholders;
670+
671 COMPIZ_PLUGIN_20090315 (gnomecompat, GnomeCompatPluginVTable);
672
673 static bool
674diff --git a/plugins/grid/src/grabhandler/tests/test-grid-grab-handler.cpp b/plugins/grid/src/grabhandler/tests/test-grid-grab-handler.cpp
675index 9abddd2..a160ad1 100644
676--- a/plugins/grid/src/grabhandler/tests/test-grid-grab-handler.cpp
677+++ b/plugins/grid/src/grabhandler/tests/test-grid-grab-handler.cpp
678@@ -26,7 +26,7 @@
679
680 #include <gtest/gtest.h>
681 #include <gmock/gmock.h>
682-#include <boost/bind.hpp>
683+#include <boost/bind/bind.hpp>
684
685 #include <grabhandler.h>
686
687@@ -40,6 +40,7 @@
688 #define CompWindowGrabResizeMask (1 << 3)
689 #define CompWindowGrabExternalAppMask (1 << 4)
690
691+using namespace boost::placeholders;
692 using testing::Eq;
693 using testing::Return;
694
695diff --git a/plugins/grid/src/grid.cpp b/plugins/grid/src/grid.cpp
696index d5afc21..6a4b7dc 100755
697--- a/plugins/grid/src/grid.cpp
698+++ b/plugins/grid/src/grid.cpp
699@@ -22,12 +22,13 @@
700 * Press the tiling keys several times to cycle through some tiling options.
701 */
702
703-#include <boost/bind.hpp>
704+#include <boost/bind/bind.hpp>
705 #include <cmath>
706 #include <cassert>
707 #include "grid.h"
708 #include "grabhandler.h"
709
710+using namespace boost::placeholders;
711 using namespace GridWindowType;
712 namespace cgw = compiz::grid::window;
713
714diff --git a/plugins/mag/src/mag.cpp b/plugins/mag/src/mag.cpp
715index ca2e00a..0b8894e 100644
716--- a/plugins/mag/src/mag.cpp
717+++ b/plugins/mag/src/mag.cpp
718@@ -22,6 +22,8 @@
719
720 #include "mag.h"
721
722+using namespace boost::placeholders;
723+
724 COMPIZ_PLUGIN_20090315 (mag, MagPluginVTable);
725
726 void
727diff --git a/plugins/matecompat/src/matecompat.cpp b/plugins/matecompat/src/matecompat.cpp
728index 888284f..78f9381 100644
729--- a/plugins/matecompat/src/matecompat.cpp
730+++ b/plugins/matecompat/src/matecompat.cpp
731@@ -25,6 +25,8 @@
732
733 #include "matecompat.h"
734
735+using namespace boost::placeholders;
736+
737 COMPIZ_PLUGIN_20090315 (matecompat, MateCompatPluginVTable);
738
739 static bool
740diff --git a/plugins/maximumize/src/maximumize.cpp b/plugins/maximumize/src/maximumize.cpp
741index 942b89c..0cd9231 100644
742--- a/plugins/maximumize/src/maximumize.cpp
743+++ b/plugins/maximumize/src/maximumize.cpp
744@@ -29,6 +29,8 @@
745
746 #include "maximumize.h"
747
748+using namespace boost::placeholders;
749+
750 COMPIZ_PLUGIN_20090315 (maximumize, MaximumizePluginVTable);
751
752 /* Convenience constants to make the code more readable (hopefully) */
753diff --git a/plugins/mblur/src/mblur.cpp b/plugins/mblur/src/mblur.cpp
754index b921fce..090c6e1 100644
755--- a/plugins/mblur/src/mblur.cpp
756+++ b/plugins/mblur/src/mblur.cpp
757@@ -24,6 +24,8 @@
758
759 #include "mblur.h"
760
761+using namespace boost::placeholders;
762+
763 COMPIZ_PLUGIN_20090315 (mblur, MblurPluginVTable);
764
765 static void
766diff --git a/plugins/neg/src/neg.cpp b/plugins/neg/src/neg.cpp
767index 7776e24..8dbc136 100644
768--- a/plugins/neg/src/neg.cpp
769+++ b/plugins/neg/src/neg.cpp
770@@ -22,6 +22,8 @@
771
772 #include "neg.h"
773
774+using namespace boost::placeholders;
775+
776 static std::string fragment_function = " \n\
777 void neg_fragment () { \n\
778 vec3 color = vec3(1.0, 1.0, 1.0) - gl_FragColor.rgb; \n\
779diff --git a/plugins/obs/src/obs.cpp b/plugins/obs/src/obs.cpp
780index 1867b46..dd16e3b 100644
781--- a/plugins/obs/src/obs.cpp
782+++ b/plugins/obs/src/obs.cpp
783@@ -26,6 +26,8 @@
784 #include "obs.h"
785 #include "obs_options.h"
786
787+using namespace boost::placeholders;
788+
789 COMPIZ_PLUGIN_20090315 (obs, ObsPluginVTable);
790
791 const unsigned short MODIFIER_OPACITY = 0;
792diff --git a/plugins/opacify/src/opacify.cpp b/plugins/opacify/src/opacify.cpp
793index 94c3af7..3de725a 100644
794--- a/plugins/opacify/src/opacify.cpp
795+++ b/plugins/opacify/src/opacify.cpp
796@@ -26,6 +26,8 @@
797
798 #include "opacify.h"
799
800+using namespace boost::placeholders;
801+
802 COMPIZ_PLUGIN_20090315 (opacify, OpacifyPluginVTable);
803
804 const unsigned short MAX_WINDOWS = 64;
805diff --git a/plugins/opengl/include/opengl/programcache.h b/plugins/opengl/include/opengl/programcache.h
806index e2765c8..be3ec3c 100644
807--- a/plugins/opengl/include/opengl/programcache.h
808+++ b/plugins/opengl/include/opengl/programcache.h
809@@ -29,7 +29,7 @@
810 #include <string>
811 #include <list>
812 #include <map>
813-#include <boost/bind.hpp>
814+#include <boost/bind/bind.hpp>
815 #include <opengl/program.h>
816
817 class PrivateProgramCache;
818diff --git a/plugins/opengl/src/doublebuffer/tests/test-opengl-double-buffer.cpp b/plugins/opengl/src/doublebuffer/tests/test-opengl-double-buffer.cpp
819index 5c4bcb3..709c816 100644
820--- a/plugins/opengl/src/doublebuffer/tests/test-opengl-double-buffer.cpp
821+++ b/plugins/opengl/src/doublebuffer/tests/test-opengl-double-buffer.cpp
822@@ -2,10 +2,11 @@
823 #include <gmock/gmock.h>
824
825 #include <boost/function.hpp>
826-#include <boost/bind.hpp>
827+#include <boost/bind/bind.hpp>
828
829 #include <opengl/doublebuffer.h>
830
831+using namespace boost::placeholders;
832 using namespace compiz::opengl;
833 using testing::_;
834 using testing::StrictMock;
835diff --git a/plugins/opengl/src/glxtfpbind/tests/test-opengl-glx-tfp-bind.cpp b/plugins/opengl/src/glxtfpbind/tests/test-opengl-glx-tfp-bind.cpp
836index 08f5cb8..c0bf9b7 100644
837--- a/plugins/opengl/src/glxtfpbind/tests/test-opengl-glx-tfp-bind.cpp
838+++ b/plugins/opengl/src/glxtfpbind/tests/test-opengl-glx-tfp-bind.cpp
839@@ -1,4 +1,4 @@
840-#include <boost/bind.hpp>
841+#include <boost/bind/bind.hpp>
842
843 #include <gtest/gtest.h>
844 #include <gmock/gmock.h>
845@@ -6,6 +6,7 @@
846 #include <core/servergrab.h>
847 #include "glx-tfp-bind.h"
848
849+using namespace boost::placeholders;
850 using ::testing::InSequence;
851 using ::testing::NiceMock;
852 using ::testing::StrictMock;
853diff --git a/plugins/opengl/src/screen.cpp b/plugins/opengl/src/screen.cpp
854index ef645aa..fcf19ca 100644
855--- a/plugins/opengl/src/screen.cpp
856+++ b/plugins/opengl/src/screen.cpp
857@@ -32,7 +32,7 @@
858 #endif
859 #include <errno.h>
860
861-#include <boost/bind.hpp>
862+#include <boost/bind/bind.hpp>
863 #include <boost/make_shared.hpp>
864
865 #include "privates.h"
866@@ -41,6 +41,8 @@
867 #include <dlfcn.h>
868 #include <math.h>
869
870+using namespace boost::placeholders;
871+
872 template class WrapableInterface<GLScreen, GLScreenInterface>;
873
874 #ifndef USE_GLES
875diff --git a/plugins/opengl/src/texture.cpp b/plugins/opengl/src/texture.cpp
876index 3b5389e..9772f9c 100644
877--- a/plugins/opengl/src/texture.cpp
878+++ b/plugins/opengl/src/texture.cpp
879@@ -41,6 +41,8 @@
880
881 #include "glx-tfp-bind.h"
882
883+using namespace boost::placeholders;
884+
885 namespace cgl = compiz::opengl;
886
887 #ifdef USE_GLES
888diff --git a/plugins/put/src/put.cpp b/plugins/put/src/put.cpp
889index 2ac1667..cf9138d 100644
890--- a/plugins/put/src/put.cpp
891+++ b/plugins/put/src/put.cpp
892@@ -21,6 +21,8 @@
893
894 #include <cmath>
895
896+using namespace boost::placeholders;
897+
898 COMPIZ_PLUGIN_20090315 (put, PutPluginVTable);
899
900 #define PUT_ONLY_EMPTY(type) (type >= PutEmptyBottomLeft && \
901diff --git a/plugins/resize/src/resize.cpp b/plugins/resize/src/resize.cpp
902index 71c4179..d66a8be 100644
903--- a/plugins/resize/src/resize.cpp
904+++ b/plugins/resize/src/resize.cpp
905@@ -41,6 +41,8 @@
906 #include "gl-screen-impl.h"
907 #include "composite-screen-impl.h"
908
909+using namespace boost::placeholders;
910+
911 COMPIZ_PLUGIN_20090315 (resize, ResizePluginVTable)
912
913 void ResizeScreen::handleEvent (XEvent *event)
914diff --git a/plugins/ring/src/ring.cpp b/plugins/ring/src/ring.cpp
915index 7be912d..b3507fb 100644
916--- a/plugins/ring/src/ring.cpp
917+++ b/plugins/ring/src/ring.cpp
918@@ -29,6 +29,8 @@
919
920 #include "ring.h"
921
922+using namespace boost::placeholders;
923+
924 COMPIZ_PLUGIN_20090315 (ring, RingPluginVTable);
925
926 const double PI = 3.14159265359f;
927diff --git a/plugins/rotate/src/rotate.cpp b/plugins/rotate/src/rotate.cpp
928index c740388..cf83afa 100644
929--- a/plugins/rotate/src/rotate.cpp
930+++ b/plugins/rotate/src/rotate.cpp
931@@ -28,6 +28,8 @@
932
933 #include <math.h>
934
935+using namespace boost::placeholders;
936+
937 static const float ROTATE_POINTER_SENSITIVITY_FACTOR = 0.05f;
938
939 COMPIZ_PLUGIN_20090315 (rotate, RotatePluginVTable)
940diff --git a/plugins/scale/src/scale.cpp b/plugins/scale/src/scale.cpp
941index 1c6ea92..17b375e 100644
942--- a/plugins/scale/src/scale.cpp
943+++ b/plugins/scale/src/scale.cpp
944@@ -38,6 +38,8 @@
945
946 #define EDGE_STATE (CompAction::StateInitEdge)
947
948+using namespace boost::placeholders;
949+
950 class ScalePluginVTable :
951 public CompPlugin::VTableForScreenAndWindow<ScaleScreen, ScaleWindow, COMPIZ_SCALE_ABI>
952 {
953diff --git a/plugins/scaleaddon/src/scaleaddon.cpp b/plugins/scaleaddon/src/scaleaddon.cpp
954index 3b6a84a..92efa43 100644
955--- a/plugins/scaleaddon/src/scaleaddon.cpp
956+++ b/plugins/scaleaddon/src/scaleaddon.cpp
957@@ -31,6 +31,8 @@
958 #include "scaleaddon.h"
959 #include <iostream>
960
961+using namespace boost::placeholders;
962+
963 COMPIZ_PLUGIN_20090315 (scaleaddon, ScaleAddonPluginVTable);
964
965 bool textAvailable;
966diff --git a/plugins/scalefilter/src/scalefilter.cpp b/plugins/scalefilter/src/scalefilter.cpp
967index 194f2ed..63b4377 100644
968--- a/plugins/scalefilter/src/scalefilter.cpp
969+++ b/plugins/scalefilter/src/scalefilter.cpp
970@@ -33,6 +33,8 @@
971
972 #include "scalefilter.h"
973
974+using namespace boost::placeholders;
975+
976 COMPIZ_PLUGIN_20090315 (scalefilter, ScalefilterPluginVTable);
977
978 FilterInfo::FilterInfo (ScalefilterScreen *fs, const CompOutput& output) :
979diff --git a/plugins/screenshot/src/screenshot.cpp b/plugins/screenshot/src/screenshot.cpp
980index 5ac6067..a7db6e4 100644
981--- a/plugins/screenshot/src/screenshot.cpp
982+++ b/plugins/screenshot/src/screenshot.cpp
983@@ -37,6 +37,8 @@
984 #define scandir(a,b,c,d) scandir((a), (b), (c), (int(*)(const void*,const void*))(d));
985 #endif
986
987+using namespace boost::placeholders;
988+
989 COMPIZ_PLUGIN_20090315 (screenshot, ShotPluginVTable)
990
991 bool
992diff --git a/plugins/shelf/src/shelf.cpp b/plugins/shelf/src/shelf.cpp
993index 116a018..0e80967 100644
994--- a/plugins/shelf/src/shelf.cpp
995+++ b/plugins/shelf/src/shelf.cpp
996@@ -34,6 +34,8 @@
997
998 #include "shelf.h"
999
1000+using namespace boost::placeholders;
1001+
1002 COMPIZ_PLUGIN_20090315 (shelf, ShelfPluginVTable);
1003
1004 const float SHELF_MIN_SIZE = 50.0f; // Minimum pixelsize a window can be scaled to
1005diff --git a/plugins/shift/src/shift.cpp b/plugins/shift/src/shift.cpp
1006index 8245240..d86f6d2 100644
1007--- a/plugins/shift/src/shift.cpp
1008+++ b/plugins/shift/src/shift.cpp
1009@@ -35,6 +35,8 @@
1010
1011 #include "shift.h"
1012
1013+using namespace boost::placeholders;
1014+
1015 COMPIZ_PLUGIN_20090315 (shift, ShiftPluginVTable);
1016
1017 const double PI = 3.14159265359f;
1018diff --git a/plugins/showmouse/src/showmouse.cpp b/plugins/showmouse/src/showmouse.cpp
1019index 0dd3825..091f9ca 100644
1020--- a/plugins/showmouse/src/showmouse.cpp
1021+++ b/plugins/showmouse/src/showmouse.cpp
1022@@ -29,6 +29,8 @@
1023
1024 #include "showmouse.h"
1025
1026+using namespace boost::placeholders;
1027+
1028 COMPIZ_PLUGIN_20090315 (showmouse, ShowmousePluginVTable);
1029
1030 /* 3 vertices per triangle, 2 triangles per particle */
1031diff --git a/plugins/showrepaint/src/showrepaint.cpp b/plugins/showrepaint/src/showrepaint.cpp
1032index 67080f6..a97f12e 100644
1033--- a/plugins/showrepaint/src/showrepaint.cpp
1034+++ b/plugins/showrepaint/src/showrepaint.cpp
1035@@ -22,6 +22,8 @@
1036
1037 #include "showrepaint.h"
1038
1039+using namespace boost::placeholders;
1040+
1041 COMPIZ_PLUGIN_20090315 (showrepaint, ShowrepaintPluginVTable);
1042
1043 bool
1044diff --git a/plugins/snap/src/snap.cpp b/plugins/snap/src/snap.cpp
1045index 24f8e45..de16c71 100644
1046--- a/plugins/snap/src/snap.cpp
1047+++ b/plugins/snap/src/snap.cpp
1048@@ -37,6 +37,7 @@
1049
1050 #include "snap.h"
1051
1052+using namespace boost::placeholders;
1053
1054 COMPIZ_PLUGIN_20090315 (snap, SnapPluginVTable);
1055
1056diff --git a/plugins/splash/src/splash.cpp b/plugins/splash/src/splash.cpp
1057index 1e4ebbb..94bd9d8 100644
1058--- a/plugins/splash/src/splash.cpp
1059+++ b/plugins/splash/src/splash.cpp
1060@@ -21,6 +21,8 @@
1061
1062 #include "splash.h"
1063
1064+using namespace boost::placeholders;
1065+
1066 COMPIZ_PLUGIN_20090315 (splash, SplashPluginVTable);
1067
1068 const std::string SPLASH_BACKGROUND_DEFAULT("");
1069diff --git a/plugins/staticswitcher/src/staticswitcher.cpp b/plugins/staticswitcher/src/staticswitcher.cpp
1070index 452e1be..d15af7e 100644
1071--- a/plugins/staticswitcher/src/staticswitcher.cpp
1072+++ b/plugins/staticswitcher/src/staticswitcher.cpp
1073@@ -25,6 +25,8 @@
1074
1075 #include "staticswitcher.h"
1076
1077+using namespace boost::placeholders;
1078+
1079 COMPIZ_PLUGIN_20090315 (staticswitcher, StaticSwitchPluginVTable)
1080
1081 const unsigned short ICON_SIZE = 48;
1082diff --git a/plugins/switcher/src/switcher.cpp b/plugins/switcher/src/switcher.cpp
1083index 122f367..ecd479d 100644
1084--- a/plugins/switcher/src/switcher.cpp
1085+++ b/plugins/switcher/src/switcher.cpp
1086@@ -27,6 +27,8 @@
1087
1088 #include "switcher.h"
1089
1090+using namespace boost::placeholders;
1091+
1092 COMPIZ_PLUGIN_20090315 (switcher, SwitchPluginVTable)
1093
1094 const unsigned short WIDTH = 212;
1095diff --git a/plugins/thumbnail/src/thumbnail.cpp b/plugins/thumbnail/src/thumbnail.cpp
1096index 5a8303d..07d4202 100644
1097--- a/plugins/thumbnail/src/thumbnail.cpp
1098+++ b/plugins/thumbnail/src/thumbnail.cpp
1099@@ -30,6 +30,8 @@
1100 #include "thumbnail.h"
1101 #include "thumbnail_tex.h"
1102
1103+using namespace boost::placeholders;
1104+
1105 COMPIZ_PLUGIN_20090315 (thumbnail, ThumbPluginVTable);
1106
1107 void
1108diff --git a/plugins/trailfocus/src/trailfocus.cpp b/plugins/trailfocus/src/trailfocus.cpp
1109index 99276f2..0e99951 100644
1110--- a/plugins/trailfocus/src/trailfocus.cpp
1111+++ b/plugins/trailfocus/src/trailfocus.cpp
1112@@ -28,6 +28,8 @@
1113 #include "trailfocus.h"
1114 #include <core/atoms.h>
1115
1116+using namespace boost::placeholders;
1117+
1118 COMPIZ_PLUGIN_20090315 (trailfocus, TrailfocusPluginVTable);
1119
1120 /* Determines if a window should be handled by trailfocus or not */
1121diff --git a/plugins/vpswitch/src/vpswitch.cpp b/plugins/vpswitch/src/vpswitch.cpp
1122index e46f479..bac156e 100644
1123--- a/plugins/vpswitch/src/vpswitch.cpp
1124+++ b/plugins/vpswitch/src/vpswitch.cpp
1125@@ -28,6 +28,8 @@
1126
1127 #include "vpswitch.h"
1128
1129+using namespace boost::placeholders;
1130+
1131 COMPIZ_PLUGIN_20090315 (vpswitch, VPSwitchPluginVTable);
1132
1133 bool
1134diff --git a/plugins/wall/src/wall.cpp b/plugins/wall/src/wall.cpp
1135index 9057977..9295f44 100644
1136--- a/plugins/wall/src/wall.cpp
1137+++ b/plugins/wall/src/wall.cpp
1138@@ -37,6 +37,8 @@
1139
1140 #include "wall.h"
1141
1142+using namespace boost::placeholders;
1143+
1144 static const double PI = 3.14159265359f;
1145 static const unsigned short VIEWPORT_SWITCHER_SIZE = 100;
1146 static const unsigned short ARROW_SIZE = 33;
1147diff --git a/plugins/wallpaper/src/wallpaper.cpp b/plugins/wallpaper/src/wallpaper.cpp
1148index 24265ab..840ca05 100644
1149--- a/plugins/wallpaper/src/wallpaper.cpp
1150+++ b/plugins/wallpaper/src/wallpaper.cpp
1151@@ -22,6 +22,8 @@
1152
1153 #include "wallpaper.h"
1154
1155+using namespace boost::placeholders;
1156+
1157 COMPIZ_PLUGIN_20090315 (wallpaper, WallpaperPluginVTable);
1158
1159 static Visual *
1160@@ -431,7 +433,7 @@ WallpaperWindow::drawBackgrounds (const GLMatrix &transform,
1161 WALLPAPER_SCREEN (screen);
1162
1163 CompRect tmpRect;
1164- GLTexture::Matrix matrix;
1165+ GLTexture::Matrix matrix = GLTexture::Matrix();
1166 GLTexture::MatrixList tmpMatrixList;
1167 WallpaperBackground *back = ws->getBackgroundForViewport (bg);
1168 GLWindowPaintAttrib tmpAttrib = attrib;
1169diff --git a/plugins/water/src/water.cpp b/plugins/water/src/water.cpp
1170index ded8d4f..0186ab6 100644
1171--- a/plugins/water/src/water.cpp
1172+++ b/plugins/water/src/water.cpp
1173@@ -28,6 +28,7 @@
1174
1175 #include <math.h>
1176
1177+using namespace boost::placeholders;
1178
1179 COMPIZ_PLUGIN_20090315 (water, WaterPluginVTable)
1180
1181diff --git a/plugins/widget/src/widget.cpp b/plugins/widget/src/widget.cpp
1182index f6bee51..df194c4 100644
1183--- a/plugins/widget/src/widget.cpp
1184+++ b/plugins/widget/src/widget.cpp
1185@@ -32,6 +32,8 @@
1186
1187 #include "widget.h"
1188
1189+using namespace boost::placeholders;
1190+
1191 class WidgetExp :
1192 public CompMatch::Expression
1193 {
1194diff --git a/plugins/winrules/src/winrules.cpp b/plugins/winrules/src/winrules.cpp
1195index 8ed059d..26c4cf9 100644
1196--- a/plugins/winrules/src/winrules.cpp
1197+++ b/plugins/winrules/src/winrules.cpp
1198@@ -21,6 +21,8 @@
1199
1200 #include "winrules.h"
1201
1202+using namespace boost::placeholders;
1203+
1204 COMPIZ_PLUGIN_20090315 (winrules, WinrulesPluginVTable);
1205
1206 void
1207diff --git a/plugins/wizard/src/wizard.cpp b/plugins/wizard/src/wizard.cpp
1208index 3fa5f7f..c685aab 100644
1209--- a/plugins/wizard/src/wizard.cpp
1210+++ b/plugins/wizard/src/wizard.cpp
1211@@ -29,6 +29,8 @@
1212
1213 #include "wizard.h"
1214
1215+using namespace boost::placeholders;
1216+
1217 /* 3 vertices per triangle, 2 triangles per particle */
1218 const unsigned short CACHESIZE_FACTOR = 3 * 2;
1219
1220diff --git a/plugins/wobbly/src/wobbly.cpp b/plugins/wobbly/src/wobbly.cpp
1221index 8b50839..44edaa5 100644
1222--- a/plugins/wobbly/src/wobbly.cpp
1223+++ b/plugins/wobbly/src/wobbly.cpp
1224@@ -27,6 +27,8 @@
1225
1226 #include "wobbly.h"
1227
1228+using namespace boost::placeholders;
1229+
1230 COMPIZ_PLUGIN_20090315 (wobbly, WobblyPluginVTable)
1231
1232
1233diff --git a/plugins/workarounds/src/workarounds.cpp b/plugins/workarounds/src/workarounds.cpp
1234index 465f76b..3dddc45 100644
1235--- a/plugins/workarounds/src/workarounds.cpp
1236+++ b/plugins/workarounds/src/workarounds.cpp
1237@@ -26,6 +26,8 @@
1238
1239 #include "workarounds.h"
1240
1241+using namespace boost::placeholders;
1242+
1243 bool haveOpenGL;
1244
1245 COMPIZ_PLUGIN_20090315 (workarounds, WorkaroundsPluginVTable);
1246diff --git a/src/configurerequestbuffer.cpp b/src/configurerequestbuffer.cpp
1247index 30c4e2e..02bd19b 100644
1248--- a/src/configurerequestbuffer.cpp
1249+++ b/src/configurerequestbuffer.cpp
1250@@ -26,7 +26,7 @@
1251 #include <cassert>
1252 #include <boost/foreach.hpp>
1253 #include <boost/weak_ptr.hpp>
1254-#include <boost/bind.hpp>
1255+#include <boost/bind/bind.hpp>
1256 #include "asyncserverwindow.h"
1257 #include "configurerequestbuffer-impl.h"
1258
1259@@ -34,6 +34,8 @@
1260 #define foreach BOOST_FOREACH
1261 #endif
1262
1263+using namespace boost::placeholders;
1264+
1265 namespace crb = compiz::window::configure_buffers;
1266 namespace cw = compiz::window;
1267
1268diff --git a/src/event.cpp b/src/event.cpp
1269index 82fd49e..4c12bb2 100644
1270--- a/src/event.cpp
1271+++ b/src/event.cpp
1272@@ -26,7 +26,7 @@
1273 #include <stdlib.h>
1274 #include <string.h>
1275
1276-#include <boost/bind.hpp>
1277+#include <boost/bind/bind.hpp>
1278 #include <boost/foreach.hpp>
1279 #define foreach BOOST_FOREACH
1280
1281@@ -43,6 +43,8 @@
1282 #include "privatestackdebugger.h"
1283 #include "eventmanagement.h"
1284
1285+using namespace boost::placeholders;
1286+
1287 namespace cps = compiz::private_screen;
1288 namespace ce = compiz::events;
1289
1290diff --git a/src/option/tests/option.cpp b/src/option/tests/option.cpp
1291index cfa840e..be3cb7b 100644
1292--- a/src/option/tests/option.cpp
1293+++ b/src/option/tests/option.cpp
1294@@ -50,7 +50,7 @@ namespace {
1295 it != vl.get <CompOption::Value::Vector> ().end ();
1296 it++)
1297 {
1298- T inst;
1299+ T inst = T();
1300 CompOption::Value value (inst);
1301
1302 const CompOption::Value &v (*it);
1303diff --git a/src/plugin.cpp b/src/plugin.cpp
1304index bfaf2aa..b59bc3a 100644
1305--- a/src/plugin.cpp
1306+++ b/src/plugin.cpp
1307@@ -46,6 +46,8 @@
1308
1309 #define foreach BOOST_FOREACH
1310
1311+using namespace boost::placeholders;
1312+
1313 static const char here[] = "core";
1314
1315 CompPlugin::Map pluginsMap;
1316diff --git a/src/plugin/tests/test-plugin.cpp b/src/plugin/tests/test-plugin.cpp
1317index e7b5f7f..9cf39aa 100644
1318--- a/src/plugin/tests/test-plugin.cpp
1319+++ b/src/plugin/tests/test-plugin.cpp
1320@@ -13,6 +13,8 @@
1321 #include <gtest_shared_tmpenv.h>
1322 #include <gtest_shared_autodestroy.h>
1323
1324+using namespace boost::placeholders;
1325+
1326 class CompMatch
1327 {
1328 };
1329diff --git a/src/point/tests/test-point.h b/src/point/tests/test-point.h
1330index c0f2664..8d6ac34 100644
1331--- a/src/point/tests/test-point.h
1332+++ b/src/point/tests/test-point.h
1333@@ -29,7 +29,7 @@
1334 #include <gtest/gtest.h>
1335 #include <core/point.h>
1336 #include <iostream>
1337-#include <boost/bind.hpp>
1338+#include <boost/bind/bind.hpp>
1339
1340 class CompWindowPointTest : public ::testing::Test
1341 {
1342diff --git a/src/privatescreen/tests/test-privatescreen.cpp b/src/privatescreen/tests/test-privatescreen.cpp
1343index c412f7a..c8c979d 100644
1344--- a/src/privatescreen/tests/test-privatescreen.cpp
1345+++ b/src/privatescreen/tests/test-privatescreen.cpp
1346@@ -11,6 +11,7 @@
1347
1348 #include <stdlib.h>
1349
1350+using namespace boost::placeholders;
1351 using ::testing::Return;
1352 using ::testing::ReturnRef;
1353 using ::testing::_;
1354diff --git a/src/screen.cpp b/src/screen.cpp
1355index 8629530..9ab20be 100644
1356--- a/src/screen.cpp
1357+++ b/src/screen.cpp
1358@@ -42,7 +42,7 @@
1359 #include <libgen.h>
1360 #include <algorithm>
1361
1362-#include <boost/bind.hpp>
1363+#include <boost/bind/bind.hpp>
1364 #include <boost/foreach.hpp>
1365 #include <boost/algorithm/string.hpp>
1366 #define foreach BOOST_FOREACH
1367@@ -65,6 +65,8 @@
1368 #include "privateaction.h"
1369 #include "privatestackdebugger.h"
1370
1371+using namespace boost::placeholders;
1372+
1373 template class WrapableInterface<CompScreen, ScreenInterface>;
1374
1375 CompOutput *targetOutput;
1376diff --git a/src/session.cpp b/src/session.cpp
1377index f5ff49c..8188c81 100644
1378--- a/src/session.cpp
1379+++ b/src/session.cpp
1380@@ -41,7 +41,7 @@
1381 #include <X11/SM/SMlib.h>
1382 #include <X11/ICE/ICElib.h>
1383
1384-#include <boost/bind.hpp>
1385+#include <boost/bind/bind.hpp>
1386
1387 #define SM_DEBUG(x)
1388
1389diff --git a/src/tests/test_configurerequestbuffer.cpp b/src/tests/test_configurerequestbuffer.cpp
1390index 44503b4..cd4a167 100644
1391--- a/src/tests/test_configurerequestbuffer.cpp
1392+++ b/src/tests/test_configurerequestbuffer.cpp
1393@@ -25,7 +25,7 @@
1394 #include <deque>
1395 #include <boost/shared_ptr.hpp>
1396 #include <boost/make_shared.hpp>
1397-#include <boost/bind.hpp>
1398+#include <boost/bind/bind.hpp>
1399 #include <gmock/gmock.h>
1400 #include <gtest/gtest.h>
1401 #include <X11/Xlib.h>
1402@@ -33,6 +33,8 @@
1403 #include "configurerequestbuffer-impl.h"
1404 #include "asyncserverwindow.h"
1405
1406+using namespace boost::placeholders;
1407+
1408 namespace crb = compiz::window::configure_buffers;
1409 namespace cw = compiz::window;
1410
1411diff --git a/src/timer/tests/test-timer.h b/src/timer/tests/test-timer.h
1412index a351e5c..5b355e1 100644
1413--- a/src/timer/tests/test-timer.h
1414+++ b/src/timer/tests/test-timer.h
1415@@ -33,7 +33,7 @@
1416 #include <core/timer.h>
1417 #include <privatetimeouthandler.h>
1418 #include <privatetimeoutsource.h>
1419-#include <boost/bind.hpp>
1420+#include <boost/bind/bind.hpp>
1421 #include <boost/shared_ptr.hpp>
1422 #include <deque>
1423
1424diff --git a/src/window.cpp b/src/window.cpp
1425index d5aafe6..10f0eea 100644
1426--- a/src/window.cpp
1427+++ b/src/window.cpp
1428@@ -36,7 +36,7 @@
1429 #include <assert.h>
1430 #include <math.h>
1431
1432-#include <boost/bind.hpp>
1433+#include <boost/bind/bind.hpp>
1434 #include <boost/make_shared.hpp>
1435 #include <boost/pointer_cast.hpp>
1436
1437@@ -51,6 +51,8 @@
1438
1439 #include <boost/scoped_array.hpp>
1440
1441+using namespace boost::placeholders;
1442+
1443 namespace crb = compiz::window::configure_buffers;
1444 namespace cw = compiz::window;
1445
1446diff --git a/src/window/constrainment/tests/test-window-constrainment.h b/src/window/constrainment/tests/test-window-constrainment.h
1447index 1286253..1449aa1 100644
1448--- a/src/window/constrainment/tests/test-window-constrainment.h
1449+++ b/src/window/constrainment/tests/test-window-constrainment.h
1450@@ -30,7 +30,7 @@
1451 #include <core/windowconstrainment.h>
1452 #include <core/windowgeometry.h>
1453 #include <iostream>
1454-#include <boost/bind.hpp>
1455+#include <boost/bind/bind.hpp>
1456
1457 class CompWindowConstrainmentTest : public ::testing::Test
1458 {
1459diff --git a/src/window/extents/tests/test-window-extents.h b/src/window/extents/tests/test-window-extents.h
1460index bfe6e23..1166cf8 100644
1461--- a/src/window/extents/tests/test-window-extents.h
1462+++ b/src/window/extents/tests/test-window-extents.h
1463@@ -29,7 +29,7 @@
1464 #include <gtest/gtest.h>
1465 #include <core/windowextents.h>
1466 #include <iostream>
1467-#include <boost/bind.hpp>
1468+#include <boost/bind/bind.hpp>
1469
1470 class CompWindowExtentsTest : public ::testing::Test
1471 {
1472diff --git a/src/window/geometry-saver/tests/test-window-geometry-saver.h b/src/window/geometry-saver/tests/test-window-geometry-saver.h
1473index c748c2b..e85c7c6 100644
1474--- a/src/window/geometry-saver/tests/test-window-geometry-saver.h
1475+++ b/src/window/geometry-saver/tests/test-window-geometry-saver.h
1476@@ -30,7 +30,7 @@
1477 #include <core/windowgeometrysaver.h>
1478 #include <core/rect.h>
1479 #include <iostream>
1480-#include <boost/bind.hpp>
1481+#include <boost/bind/bind.hpp>
1482
1483 class CompWindowGeometryTest : public ::testing::Test
1484 {
1485diff --git a/src/window/geometry/tests/test-window-geometry.h b/src/window/geometry/tests/test-window-geometry.h
1486index 555bd37..2aea23d 100644
1487--- a/src/window/geometry/tests/test-window-geometry.h
1488+++ b/src/window/geometry/tests/test-window-geometry.h
1489@@ -30,7 +30,7 @@
1490 #include <core/windowgeometry.h>
1491 #include <core/rect.h>
1492 #include <iostream>
1493-#include <boost/bind.hpp>
1494+#include <boost/bind/bind.hpp>
1495
1496 class CompWindowGeometryTest : public ::testing::Test
1497 {
1498diff --git a/tests/acceptance-tests/xorg-gtest/tests/compiz_acceptance_replace_current_wm.cpp b/tests/acceptance-tests/xorg-gtest/tests/compiz_acceptance_replace_current_wm.cpp
1499index a616d43..c6308f2 100644
1500--- a/tests/acceptance-tests/xorg-gtest/tests/compiz_acceptance_replace_current_wm.cpp
1501+++ b/tests/acceptance-tests/xorg-gtest/tests/compiz_acceptance_replace_current_wm.cpp
1502@@ -26,7 +26,7 @@
1503 #include <gmock/gmock.h>
1504
1505 #include <boost/function.hpp>
1506-#include <boost/bind.hpp>
1507+#include <boost/bind/bind.hpp>
1508
1509 #include <boost/shared_ptr.hpp>
1510 #include <boost/make_shared.hpp>
1511diff --git a/tests/shared/gtest_shared_autodestroy.h b/tests/shared/gtest_shared_autodestroy.h
1512index db19c8d..043af74 100644
1513--- a/tests/shared/gtest_shared_autodestroy.h
1514+++ b/tests/shared/gtest_shared_autodestroy.h
1515@@ -21,9 +21,11 @@
1516 #ifndef _COMPIZ_GTEST_SHARED_AUTODESTROY_H
1517 #define _COMPIZ_GTEST_SHARED_AUTODESTROY_H
1518
1519-#include <boost/bind.hpp>
1520+#include <boost/bind/bind.hpp>
1521 #include <boost/shared_ptr.hpp>
1522
1523+using namespace boost::placeholders;
1524+
1525 namespace
1526 {
1527 template <typename T, typename TDel>
1528diff --git a/tests/system/xorg-gtest/tests/compiz_xorg_gtest_configure_window.cpp b/tests/system/xorg-gtest/tests/compiz_xorg_gtest_configure_window.cpp
1529index 1f85e0a..3caa3a1 100644
1530--- a/tests/system/xorg-gtest/tests/compiz_xorg_gtest_configure_window.cpp
1531+++ b/tests/system/xorg-gtest/tests/compiz_xorg_gtest_configure_window.cpp
1532@@ -31,7 +31,7 @@
1533 #include <gtest/gtest.h>
1534 #include <gmock/gmock.h>
1535 #include <boost/function.hpp>
1536-#include <boost/bind.hpp>
1537+#include <boost/bind/bind.hpp>
1538 #include <xorg/gtest/xorg-gtest.h>
1539 #include <compiz-xorg-gtest.h>
1540 #include <compiz_xorg_gtest_communicator.h>
1541@@ -41,6 +41,8 @@
1542 #include <X11/Xlib.h>
1543 #include <X11/Xatom.h>
1544
1545+using namespace boost::placeholders;
1546+
1547 using ::testing::MatchResultListener;
1548 using ::testing::MakeMatcher;
1549 using ::testing::Matcher;
1550diff --git a/tests/system/xorg-gtest/tests/compiz_xorg_gtest_ewmh.cpp b/tests/system/xorg-gtest/tests/compiz_xorg_gtest_ewmh.cpp
1551index eb4df5b..75e4f79 100644
1552--- a/tests/system/xorg-gtest/tests/compiz_xorg_gtest_ewmh.cpp
1553+++ b/tests/system/xorg-gtest/tests/compiz_xorg_gtest_ewmh.cpp
1554@@ -24,7 +24,7 @@
1555 #include <string>
1556 #include <stdexcept>
1557 #include <boost/function.hpp>
1558-#include <boost/bind.hpp>
1559+#include <boost/bind/bind.hpp>
1560 #include <boost/shared_ptr.hpp>
1561 #include <boost/make_shared.hpp>
1562 #include <gtest/gtest.h>
1563diff --git a/tests/system/xorg-gtest/tests/compiz_xorg_gtest_icccm.cpp b/tests/system/xorg-gtest/tests/compiz_xorg_gtest_icccm.cpp
1564index 5687e2f..4901d1a 100644
1565--- a/tests/system/xorg-gtest/tests/compiz_xorg_gtest_icccm.cpp
1566+++ b/tests/system/xorg-gtest/tests/compiz_xorg_gtest_icccm.cpp
1567@@ -24,7 +24,7 @@
1568 #include <string>
1569 #include <stdexcept>
1570 #include <boost/function.hpp>
1571-#include <boost/bind.hpp>
1572+#include <boost/bind/bind.hpp>
1573 #include <boost/shared_ptr.hpp>
1574 #include <boost/make_shared.hpp>
1575 #include <gtest/gtest.h>
1576diff --git a/tests/system/xorg-gtest/tests/compiz_xorg_gtest_test_window_stacking.cpp b/tests/system/xorg-gtest/tests/compiz_xorg_gtest_test_window_stacking.cpp
1577index 9c806e2..f7ab915 100644
1578--- a/tests/system/xorg-gtest/tests/compiz_xorg_gtest_test_window_stacking.cpp
1579+++ b/tests/system/xorg-gtest/tests/compiz_xorg_gtest_test_window_stacking.cpp
1580@@ -27,7 +27,7 @@
1581 #include <gmock/gmock.h>
1582
1583 #include <boost/shared_array.hpp>
1584-#include <boost/bind.hpp>
1585+#include <boost/bind/bind.hpp>
1586
1587 #include <xorg/gtest/xorg-gtest.h>
1588 #include <compiz-xorg-gtest.h>
1589@@ -36,6 +36,7 @@
1590 #include <X11/Xlib.h>
1591 #include <X11/Xatom.h>
1592
1593+using namespace boost::placeholders;
1594 using ::testing::MatchResultListener;
1595 using ::testing::MakeMatcher;
1596 using ::testing::Matcher;
1597diff --git a/tests/xorg-gtest/plugins/testhelper/src/testhelper.cpp b/tests/xorg-gtest/plugins/testhelper/src/testhelper.cpp
1598index e6bcea5..688525d 100644
1599--- a/tests/xorg-gtest/plugins/testhelper/src/testhelper.cpp
1600+++ b/tests/xorg-gtest/plugins/testhelper/src/testhelper.cpp
1601@@ -24,9 +24,11 @@
1602 */
1603
1604 #include <boost/shared_ptr.hpp>
1605-#include <boost/bind.hpp>
1606+#include <boost/bind/bind.hpp>
1607 #include "testhelper.h"
1608
1609+using namespace boost::placeholders;
1610+
1611 COMPIZ_PLUGIN_20090315 (testhelper, TestHelperPluginVTable)
1612
1613 namespace

Subscribers

People subscribed via source and target branches