summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Spilsbury <smspillaz@gmail.com>2010-12-13 21:49:10 +0800
committerSam Spilsbury <smspillaz@gmail.com>2010-12-13 21:49:10 +0800
commitb2077af2de54aa9f06a2548c8054e969ed9ca280 (patch)
treeb272b1b38eb0db0fcf758a07b3ac6a24d23c6b7d
parent25edfca526e6f3eb2fae85372d139810ca869e78 (diff)
downloadcompiz-with-glib-mainloop-b2077af2de54aa9f06a2548c8054e969ed9ca280.tar.gz
compiz-with-glib-mainloop-b2077af2de54aa9f06a2548c8054e969ed9ca280.tar.bz2
Send window id in decoration notification
-rw-r--r--plugins/decor/src/decor.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/decor/src/decor.cpp b/plugins/decor/src/decor.cpp
index ba35c8d..0070271 100644
--- a/plugins/decor/src/decor.cpp
+++ b/plugins/decor/src/decor.cpp
@@ -648,7 +648,11 @@ static bool
decorOffsetMove (CompWindow *w, XWindowChanges xwc, unsigned int mask)
{
CompOption::Vector o;
- o.resize (0);
+ o.resize (1);
+
+ o.at (0).setName ("window", CompOption::TypeInt);
+ o.at (0).value ().set ((int) w->id ());
+
w->configureXWindow (mask, &xwc);
screen->handleCompizEvent ("decor", "window_decorated", o);
return false;