Move stack tracking and guard_window outside of MetaScreen

Move stack, stack_tracker to MetaDisplay guard_window to MetaX11Display

https://bugzilla.gnome.org/show_bug.cgi?id=759538
This commit is contained in:
Armin Krezović
2017-08-26 19:03:51 +02:00
committed by Jonas Ådahl
parent 9e5ea8def4
commit 98d912ba5f
22 changed files with 300 additions and 266 deletions

View File

@ -40,7 +40,7 @@
* by layer, then by stack_position within each layer.
*/
#include "screen-private.h"
#include "display-private.h"
/**
* A sorted list of windows bearing some level of resemblance to the stack of
@ -51,8 +51,8 @@
*/
struct _MetaStack
{
/** The MetaScreen containing this stack. */
MetaScreen *screen;
/** The MetaDisplay containing this stack. */
MetaDisplay *display;
/**
* A sequence of all the Windows (X handles, not MetaWindows) of the windows
@ -123,13 +123,13 @@ struct _MetaStack
/**
* meta_stack_new:
* @screen: The MetaScreen which will be the parent of this stack.
* @display: The MetaDisplay which will be the parent of this stack.
*
* Creates and initialises a MetaStack.
*
* Returns: The new screen.
* Returns: The new stack.
*/
MetaStack *meta_stack_new (MetaScreen *screen);
MetaStack *meta_stack_new (MetaDisplay *display);
/**
* meta_stack_free: