diff --git a/configure.ac b/configure.ac index 428a5af..a6c00fd 100644 --- a/configure.ac +++ b/configure.ac @@ -288,6 +288,9 @@ if test "x$use_gtk" = "xyes"; then PKG_CHECK_EXISTS(libwnck-1.0 >= 2.18.1, [have_libwnck_2_18_1=yes], [have_libwnck_2_18_1=no]) + PKG_CHECK_EXISTS(libwnck-1.0 >= 2.19.4, + [have_libwnck_2_19_4=yes], [have_libwnck_2_19_4=no]) + if test "x$use_metacity" = "xyes"; then PKG_CHECK_MODULES(METACITY, libmetacity-private, [use_metacity=yes], [use_metacity=no]) @@ -331,6 +334,10 @@ if test "$use_gtk" = yes; then AC_DEFINE(HAVE_LIBWNCK_2_18_1, 1, [Define to 1 if libwnck version >= 2_18_1]) fi + if test "$have_libwnck_2_19_4" = yes; then + AC_DEFINE(HAVE_LIBWNCK_2_19_4, 1, + [Define to 1 if libwnck version >= 2_19_4]) + fi fi AM_CONDITIONAL(USE_METACITY, test "x$use_metacity" = "xyes") diff --git a/gtk/window-decorator/gtk-window-decorator.c b/gtk/window-decorator/gtk-window-decorator.c index 5ceeaab..c984e08 100644 --- a/gtk/window-decorator/gtk-window-decorator.c +++ b/gtk/window-decorator/gtk-window-decorator.c @@ -56,6 +56,10 @@ #include #include +#if defined (HAVE_LIBWNCK_2_19_4) +#define wnck_window_get_geometry wnck_window_get_client_window_geometry +#endif + #include #include