mirror of
https://github.com/brl/mutter.git
synced 2024-11-30 12:00:44 -05:00
74e43a4702
Instead of hardcoded knowledge of certain classes in MetaWindowGroup, create a generic interface that all actors can implement to get parts of their regions culled out during redraw, without needing any special knowledge of how to handle a specific actor. The names now are a bit suspect. MetaBackgroundGroup is a simple MetaCullable that knows how to cull children, and MetaWindowGroup is the "toplevel" cullable that computes the initial two regions. A future cleanup here could be to merge MetaWindowGroup / MetaBackgroundGroup so that we only have a generic MetaSimpleCullable, and move the "toplevel" cullability to be a MetaCullableToplevel. https://bugzilla.gnome.org/show_bug.cgi?id=714706
12 lines
344 B
C
12 lines
344 B
C
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
|
|
|
|
#ifndef META_BACKGROUND_ACTOR_PRIVATE_H
|
|
#define META_BACKGROUND_ACTOR_PRIVATE_H
|
|
|
|
#include <meta/screen.h>
|
|
#include <meta/meta-background-actor.h>
|
|
|
|
cairo_region_t *meta_background_actor_get_clip_region (MetaBackgroundActor *self);
|
|
|
|
#endif /* META_BACKGROUND_ACTOR_PRIVATE_H */
|