2017-08-26 12:24:46 -04:00
|
|
|
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
|
|
|
|
|
|
|
|
/* Mutter X display handler */
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright (C) 2001 Havoc Pennington
|
|
|
|
* Copyright (C) 2002 Red Hat, Inc.
|
|
|
|
* Copyright (C) 2003 Rob Adams
|
|
|
|
* Copyright (C) 2004-2006 Elijah Newren
|
|
|
|
*
|
|
|
|
* 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_X11_DISPLAY_PRIVATE_H
|
|
|
|
#define META_X11_DISPLAY_PRIVATE_H
|
|
|
|
|
|
|
|
#include <glib.h>
|
2017-08-26 12:26:30 -04:00
|
|
|
#include <X11/Xlib.h>
|
2017-08-26 12:24:46 -04:00
|
|
|
|
|
|
|
#include "core/display-private.h"
|
|
|
|
#include "meta/common.h"
|
|
|
|
#include "meta/types.h"
|
|
|
|
#include "meta/meta-x11-display.h"
|
|
|
|
|
|
|
|
struct _MetaX11Display
|
|
|
|
{
|
|
|
|
GObject parent;
|
|
|
|
|
|
|
|
MetaDisplay *display;
|
2017-08-26 12:26:30 -04:00
|
|
|
|
|
|
|
char *name;
|
|
|
|
char *screen_name;
|
|
|
|
|
|
|
|
Display *xdisplay;
|
|
|
|
Window xroot;
|
|
|
|
int default_depth;
|
|
|
|
Visual *default_xvisual;
|
|
|
|
|
|
|
|
/* Pull in all the names of atoms as fields; we will intern them when the
|
|
|
|
* class is constructed.
|
|
|
|
*/
|
|
|
|
#define item(x) Atom atom_##x;
|
|
|
|
#include "x11/atomnames.h"
|
|
|
|
#undef item
|
2017-08-26 12:24:46 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
MetaX11Display *meta_x11_display_new (MetaDisplay *display, GError **error);
|
|
|
|
|
2017-08-26 12:26:30 -04:00
|
|
|
Window meta_x11_display_create_offscreen_window (MetaX11Display *x11_display,
|
|
|
|
Window parent,
|
|
|
|
long valuemask);
|
|
|
|
|
|
|
|
Cursor meta_x11_display_create_x_cursor (MetaX11Display *x11_display,
|
|
|
|
MetaCursor cursor);
|
|
|
|
|
2017-08-26 12:24:46 -04:00
|
|
|
#endif /* META_X11_DISPLAY_PRIVATE_H */
|