summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/cube.c
diff options
context:
space:
mode:
authorquinn <quinn@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-27 21:47:58 +0000
committerquinn <quinn@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-27 21:47:58 +0000
commita9600ccc9b3d9269e710cd576519f99e2d605430 (patch)
tree41e7158246224e1bc14473270227e0f3776f079a /beryl-plugins/src/cube.c
parent3d8db583dc5ae8dc88f81f4b1b98187147f6daa0 (diff)
downloadmarex-dev-a9600ccc9b3d9269e710cd576519f99e2d605430.tar.gz
marex-dev-a9600ccc9b3d9269e710cd576519f99e2d605430.tar.bz2
cube plugin:
* make sticky windows ignore state below windows, should keep screenlets from popping to the top, but need to test & make sure git-svn-id: file:///beryl/trunk@3269 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins/src/cube.c')
-rw-r--r--beryl-plugins/src/cube.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/beryl-plugins/src/cube.c b/beryl-plugins/src/cube.c
index 69c8bdc..c8912f5 100644
--- a/beryl-plugins/src/cube.c
+++ b/beryl-plugins/src/cube.c
@@ -1669,7 +1669,7 @@ cubePaintScreen(CompScreen * s,
CompWindow * w;
for (w=s->reverseWindows;w;w=w->prev)
{
- if (((w->type & CompWindowTypeDockMask) || (w->state & CompWindowStateStickyMask) ||
+ if (((w->type & CompWindowTypeDockMask) || (w->state & CompWindowStateStickyMask && !(w->state & CompWindowStateBelowMask)) ||
w->attrib.override_redirect) &&
(w->mapNum && w->attrib.map_state == IsViewable && !(w->minimized) && !(w->state & CompWindowStateHiddenMask)))
{
@@ -2528,7 +2528,7 @@ cubePaintWindow(CompWindow * w,
if (!w->managed && cs->noManaged)
return TRUE;
- if ((w->type & CompWindowTypeDockMask) || (w->state & CompWindowStateStickyMask))
+ if ((w->type & CompWindowTypeDockMask) || (w->state & CompWindowStateStickyMask && !(w->state & CompWindowStateBelowMask)))
{
if (!cs->finalPaint)
{