summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/move.c
diff options
context:
space:
mode:
authorkristian <kristian@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-16 16:40:55 +0000
committerkristian <kristian@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-16 16:40:55 +0000
commitb247572d31a2e1e0b12883ce3f432753b88c2b2f (patch)
treeb0b00ed991a51695036487b430bf38716ccfb789 /beryl-plugins/src/move.c
parent2ff207f60e6c3c254ac869ba9c2410e325009491 (diff)
downloadmarex-dev-b247572d31a2e1e0b12883ce3f432753b88c2b2f.tar.gz
marex-dev-b247572d31a2e1e0b12883ce3f432753b88c2b2f.tar.bz2
First paint-attrib change, locking needs work. State needs
to use this. beryl-core: - Set up functions to set opacity/brightness/saturation and reset it, based on a default. Default is currently set to atom by default. - Resetting the default means setting it back to the atom. - Locking is not entierly perfect as it locks a bit too much. beryl-plugins: move.c and opacify.c : use the above system. branches: trailfocus2: Use the above system. Read mailinglist/code for details. git-svn-id: file:///beryl/trunk@2719 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins/src/move.c')
-rw-r--r--beryl-plugins/src/move.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/beryl-plugins/src/move.c b/beryl-plugins/src/move.c
index e533583..23e50af 100644
--- a/beryl-plugins/src/move.c
+++ b/beryl-plugins/src/move.c
@@ -216,7 +216,8 @@ moveInitiate(CompDisplay * d,
if (md->moveOpacity != OPAQUE && w->opacity >= md->opacifyMinOpacity)
{
/* modify opacity of windows that are not active */
- w->paint.opacity = md->moveOpacity;
+ set_window_opacity(w, md->moveOpacity, PL_NO_LOCK);
+ //w->paint.opacity = md->moveOpacity;
md->moveOpacitySet = True;
}
else
@@ -256,7 +257,7 @@ moveTerminate(CompDisplay * d,
syncWindowPosition(md->w);
if (md->moveOpacitySet)
- md->w->paint.opacity = md->w->opacity;
+ reset_window_opacity(md->w, PL_NO_LOCK);
damageScreen(md->w->screen);
if (ms->grabIndex)