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:
Barnabás Pőcze
2023-06-08 02:49:35 +02:00
parent af10ead918
commit d6b3679bd3
4 changed files with 97 additions and 89 deletions

View File

@ -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