diff options
author | Dennis Kasprzyk <onestone@opencompositing.org> | 2007-09-27 14:00:23 +0200 |
---|---|---|
committer | Dennis Kasprzyk <onestone@opencompositing.org> | 2007-10-08 18:24:24 +0200 |
commit | 9d76235c1d7e80adb43f72043e5260894a6ad245 (patch) | |
tree | 48665b6ffc06e30ad36345018be7d315f73d90de /src | |
parent | dcc88d1f591f6634f92c0645eeb73926091a412b (diff) |
Added windowOnAllViewports function.
Diffstat (limited to 'src')
-rw-r--r-- | src/window.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/window.c b/src/window.c index 100f749e..e2b0e357 100644 --- a/src/window.c +++ b/src/window.c @@ -4980,3 +4980,21 @@ compareWindowActiveness (CompWindow *w1, return w1->activeNum - w2->activeNum; } + +Bool +windowOnAllViewports (CompWindow *w) +{ + if (w->attrib.override_redirect) + return TRUE; + + if (!w->managed && w->attrib.map_state != IsViewable) + return TRUE; + + if (w->type & (CompWindowTypeDesktopMask | CompWindowTypeDockMask)) + return TRUE; + + if (w->state & CompWindowStateStickyMask) + return TRUE; + + return FALSE; +} |