core: Subscribe to stack changes in the stack-tracker
This removes the implicit dependency on `display->stack_tracker` existing and being valid in `on_stack_changed()` because now it is the stack-tracker's responsibility to subscribe to the "changed" signal of the stack and handle the changes. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3202>
This commit is contained in:
@ -38,8 +38,9 @@
|
||||
#include "meta/window.h"
|
||||
|
||||
typedef struct _MetaStackTracker MetaStackTracker;
|
||||
typedef struct _MetaStack MetaStack;
|
||||
|
||||
MetaStackTracker *meta_stack_tracker_new (MetaDisplay *display);
|
||||
MetaStackTracker *meta_stack_tracker_new (MetaStack *stack);
|
||||
void meta_stack_tracker_free (MetaStackTracker *tracker);
|
||||
|
||||
/* These functions are called when we make an X call that changes the
|
||||
|
Reference in New Issue
Block a user