summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2011-03-23 14:28:04 +0100
committerDanny Baumann <dannybaumann@web.de>2011-03-23 14:28:04 +0100
commit700e258511e71e1105445346dee5004c52190e18 (patch)
treea44683f11c3dc1406b8a9ee81a4d46547bdc061c
parent5555761bfa3a101ca11983d9e7a44cc893f17909 (diff)
downloadplugins-extra-700e258511e71e1105445346dee5004c52190e18.tar.gz
plugins-extra-700e258511e71e1105445346dee5004c52190e18.tar.bz2
Sync from individual plugin repos.
-rw-r--r--configure.ac2
-rw-r--r--src/trailfocus/trailfocus.c6
2 files changed, 5 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 1714df3..3daf1eb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -136,7 +136,7 @@ AM_CONDITIONAL(THREED_PLUGIN, test "x$have_compiz_cube" = "xyes")
PKG_CHECK_MODULES(COMPIZMOUSEPOLL, compiz-mousepoll, [have_compiz_mousepoll=yes], [have_compiz_mousepoll=no])
AM_CONDITIONAL(SHOWMOUSE_PLUGIN, test "x$have_compiz_mousepoll" = "xyes")
-PKG_CHECK_MODULES(LIBNOTIFY, libnotify, [have_libnotify=yes], [have_libnotify=no])
+PKG_CHECK_MODULES(LIBNOTIFY, libnotify gtk+-2.0, [have_libnotify=yes], [have_libnotify=no])
AM_CONDITIONAL(NOTIFICATION_PLUGIN, test "x$have_libnotify" = "xyes")
if test "$have_libnotify" = yes; then
AC_DEFINE(USE_NOTIFICATION, 1, [Build notification plugin])
diff --git a/src/trailfocus/trailfocus.c b/src/trailfocus/trailfocus.c
index 220decd..fa1e5e4 100644
--- a/src/trailfocus/trailfocus.c
+++ b/src/trailfocus/trailfocus.c
@@ -239,11 +239,13 @@ popWindow (CompDisplay *d,
/* find window from the stacking order next to the last window
in the stack to fill the empty space */
- for (i = winMax - 1; i >= 0; i--)
+ for (w = NULL, i = winMax - 1; i >= 0; i--)
if (ts->win[i])
+ {
+ w = findWindowAtDisplay (d, ts->win[i]);
break;
+ }
- w = findWindowAtDisplay (d, ts->win[i]);
if (w)
{
CompWindow *cw;