mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 11:32:04 +00:00
window-actor: Turn into a derivable class
We will introduce specialized MetaWindowActors for X11 and Wayland in the future, so it needs to be derivable. Make it a derivable class, and introduce a private field. The MetaWindowActorClass definition is in the private header in order to prevent external consumers of Mutter to create MetaWindowActor implementations of their own. That is, MetaWindowActor is only internally derivable. https://gitlab.gnome.org/GNOME/mutter/merge_requests/368
This commit is contained in:
parent
2fe05d7c35
commit
60f7ff3a69
@ -9,6 +9,11 @@
|
||||
#include "compositor/meta-surface-actor.h"
|
||||
#include "meta/compositor-mutter.h"
|
||||
|
||||
struct _MetaWindowActorClass
|
||||
{
|
||||
ClutterActorClass parent;
|
||||
};
|
||||
|
||||
MetaWindowActor *meta_window_actor_new (MetaWindow *window);
|
||||
|
||||
void meta_window_actor_queue_destroy (MetaWindowActor *self);
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -29,11 +29,10 @@
|
||||
#include "meta/compositor.h"
|
||||
|
||||
#define META_TYPE_WINDOW_ACTOR (meta_window_actor_get_type ())
|
||||
G_DECLARE_FINAL_TYPE (MetaWindowActor,
|
||||
meta_window_actor,
|
||||
META, WINDOW_ACTOR,
|
||||
ClutterActor)
|
||||
|
||||
G_DECLARE_DERIVABLE_TYPE (MetaWindowActor,
|
||||
meta_window_actor,
|
||||
META, WINDOW_ACTOR,
|
||||
ClutterActor)
|
||||
|
||||
Window meta_window_actor_get_x_window (MetaWindowActor *self);
|
||||
MetaWindow * meta_window_actor_get_meta_window (MetaWindowActor *self);
|
||||
|
Loading…
Reference in New Issue
Block a user