Move MetaGroup to be X11-specific

This commit is contained in:
Jasper St. Pierre 2014-03-18 21:22:58 -04:00
parent 48a36356dd
commit f940292cfe
11 changed files with 25 additions and 64 deletions

View File

@ -183,11 +183,10 @@ libmutter_wayland_la_SOURCES = \
x11/iconcache.h \
x11/async-getprop.c \
x11/async-getprop.h \
x11/group-private.h \
x11/group-props.c \
x11/group-props.h \
x11/group.c \
meta/group.h \
x11/group.h \
x11/window-props.c \
x11/window-props.h \
x11/window-x11.c \
@ -234,7 +233,6 @@ libmutterinclude_base_headers = \
meta/display.h \
meta/errors.h \
meta/gradient.h \
meta/group.h \
meta/keybindings.h \
meta/main.h \
meta/meta-background-actor.h \

View File

@ -30,7 +30,7 @@
#include "window-private.h"
#include <meta/errors.h>
#include "frame.h"
#include <meta/group.h>
#include "group.h"
#include <meta/prefs.h>
#include <meta/workspace.h>

View File

@ -45,6 +45,8 @@
#include <clutter/clutter.h>
#include "meta-wayland-types.h"
#include "group.h"
typedef struct _MetaWindowQueue MetaWindowQueue;
typedef enum {

View File

@ -43,7 +43,7 @@
#include <meta/prefs.h>
#include "resizepopup.h"
#include "xprops.h"
#include <meta/group.h>
#include "group.h"
#include "window-props.h"
#include "constraints.h"
#include "mutter-enum-types.h"

View File

@ -30,11 +30,6 @@ typedef struct _MetaFrame MetaFrame;
typedef struct _MetaScreen MetaScreen;
typedef struct _MetaWindow MetaWindow;
typedef struct _MetaWorkspace MetaWorkspace;
/**
* MetaGroup: (skip)
*
*/
typedef struct _MetaGroup MetaGroup;
typedef struct _MetaKeyBinding MetaKeyBinding;
typedef struct _MetaCursorTracker MetaCursorTracker;

View File

@ -1,41 +0,0 @@
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
/* Mutter window group private header */
/*
* Copyright (C) 2002 Red Hat Inc.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef META_GROUP_PRIVATE_H
#define META_GROUP_PRIVATE_H
#include <meta/group.h>
struct _MetaGroup
{
int refcount;
MetaDisplay *display;
GSList *windows;
Window group_leader;
char *startup_id;
char *wm_client_machine;
};
#endif

View File

@ -21,7 +21,6 @@
#include <config.h>
#include "group-props.h"
#include "group-private.h"
#include "xprops.h"
#include <X11/Xatom.h>

View File

@ -22,7 +22,7 @@
#ifndef META_GROUP_PROPS_H
#define META_GROUP_PROPS_H
#include <meta/group.h>
#include "group.h"
#include "window-private.h"
void meta_group_reload_property (MetaGroup *group,

View File

@ -27,7 +27,7 @@
#include <config.h>
#include <meta/util.h>
#include "group-private.h"
#include "group.h"
#include "group-props.h"
#include "window-private.h"
#include <meta/window.h>

View File

@ -1,6 +1,6 @@
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
/* Mutter window groups */
/* Mutter window group private header */
/*
* Copyright (C) 2002 Red Hat Inc.
@ -26,9 +26,21 @@
#include <glib.h>
#include <meta/types.h>
typedef struct _MetaGroup MetaGroup;
struct _MetaGroup
{
int refcount;
MetaDisplay *display;
GSList *windows;
Window group_leader;
char *startup_id;
char *wm_client_machine;
};
/* note, can return NULL */
MetaGroup* meta_window_get_group (MetaWindow *window);
void meta_window_compute_group (MetaWindow* window);
void meta_window_compute_group (MetaWindow *window);
void meta_window_shutdown_group (MetaWindow *window);
void meta_window_group_leader_changed (MetaWindow *window);
@ -49,7 +61,3 @@ gboolean meta_group_property_notify (MetaGroup *group,
XEvent *event);
#endif

View File

@ -44,7 +44,7 @@
#include <meta/errors.h>
#include "xprops.h"
#include "frame.h"
#include <meta/group.h>
#include "group.h"
#include <X11/Xatom.h>
#include <unistd.h>
#include <string.h>