summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathon Jongsma <jjongsma@redhat.com>2015-11-10 14:41:18 -0600
committerFrediano Ziglio <fziglio@redhat.com>2015-11-11 11:59:58 +0000
commit0e7617e51fb8a04767fae4e669c1de66fba846e8 (patch)
tree08abe3e2290e903895430707fc29f4fb411f4a4f
parenta7fc6217502e3646a32b7b23898566f9e7f16223 (diff)
downloadspice-0e7617e51fb8a04767fae4e669c1de66fba846e8.zip
spice-0e7617e51fb8a04767fae4e669c1de66fba846e8.tar.gz
spice-0e7617e51fb8a04767fae4e669c1de66fba846e8.tar.xz
worker: Move is_opaque_item() to tree.h
Acked-by: Fabiano FidĂȘncio <fidencio@redhat.com>
-rw-r--r--server/red_worker.c6
-rw-r--r--server/tree.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/server/red_worker.c b/server/red_worker.c
index face713..0d04cc4 100644
--- a/server/red_worker.c
+++ b/server/red_worker.c
@@ -1480,12 +1480,6 @@ static void exclude_region(RedWorker *worker, Ring *ring, RingItem *ring_item, Q
}
}
-static inline int is_opaque_item(TreeItem *item)
-{
- return item->type == TREE_ITEM_TYPE_CONTAINER ||
- (IS_DRAW_ITEM(item) && ((DrawItem *)item)->effect == QXL_EFFECT_OPAQUE);
-}
-
static inline void __current_add_drawable(RedWorker *worker, Drawable *drawable, RingItem *pos)
{
DisplayChannel *display = worker->display_channel;
diff --git a/server/tree.h b/server/tree.h
index 6e83f7a..6249c28 100644
--- a/server/tree.h
+++ b/server/tree.h
@@ -73,6 +73,12 @@ struct DrawItem {
#define IS_DRAW_ITEM(item) ((item)->type == TREE_ITEM_TYPE_DRAWABLE)
#define DRAW_ITEM(item) ((DrawItem*)(item))
+static inline int is_opaque_item(TreeItem *item)
+{
+ return item->type == TREE_ITEM_TYPE_CONTAINER ||
+ (IS_DRAW_ITEM(item) && ((DrawItem *)item)->effect == QXL_EFFECT_OPAQUE);
+}
+
void tree_item_dump (TreeItem *item);
Shadow* shadow_new (DrawItem *item, const SpicePoint *delta);
Container* container_new (DrawItem *item);