2006-10-01 22:30:10 +00:00
|
|
|
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
|
|
|
|
|
Comprehensively rename to Mutter
Code:
All references in the code not related to themes, keybindings, or
GConf were changed from 'metacity' to 'mutter'. This includes, among other
things, strings, comments, the atoms used in the message protocol, and
the envvars used for debugging. The GConf schema file was reduced to
the 3 settings new to mutter.
The overall version was brought up to 2.27 to match current gnome.
Structure:
All files named '*metacity*' were renamed '*mutter*' with appropriate
changes in the automake system. Files removed are
doc/creating_themes, src/themes, doc/metacity-theme.dtd,
metacity.doap. These files will eventually end up in an external
gnome-wm-data module.
Installation location:
On the filesystem the mutter-plugindir was change from
$(libdir)/metacity/plugins/clutter to just $(libdir)/mutter/plugins.
The mutter-plugins.pc.in reflects these changes.
Note:
mutter.desktop.in and mutter-wm.desktop both continue to have
X-GNOME-WMSettingsModule=metacity set. This allows
gnome-control-center to continue using libmetacity.so for
configuration. This is fine since most the general keybindings and wm
settings are being read from /apps/metacity/* in gconf.
2009-06-10 10:29:20 +00:00
|
|
|
/* Mutter interface for talking to GTK+ UI module */
|
2001-06-17 19:53:45 +00:00
|
|
|
|
2014-05-02 13:34:02 +00:00
|
|
|
/*
|
2001-06-17 19:53:45 +00:00
|
|
|
* Copyright (C) 2001 Havoc Pennington
|
2014-05-02 13:34:02 +00:00
|
|
|
*
|
2001-06-17 19:53:45 +00:00
|
|
|
* 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.
|
2014-05-02 13:34:02 +00:00
|
|
|
*
|
2001-06-17 19:53:45 +00:00
|
|
|
* You should have received a copy of the GNU General Public License
|
2014-01-12 01:42:06 +00:00
|
|
|
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
2001-06-17 19:53:45 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef META_UI_H
|
|
|
|
#define META_UI_H
|
|
|
|
|
2001-06-20 03:01:26 +00:00
|
|
|
#include <X11/Xlib.h>
|
2001-09-11 04:37:10 +00:00
|
|
|
#include <X11/Xutil.h>
|
2011-03-22 19:36:12 +00:00
|
|
|
#include <cairo.h>
|
2001-08-06 07:58:49 +00:00
|
|
|
#include <gdk-pixbuf/gdk-pixbuf.h>
|
2018-07-10 08:36:24 +00:00
|
|
|
#include <glib.h>
|
|
|
|
|
2019-01-23 02:25:35 +00:00
|
|
|
#include "core/util-private.h"
|
2018-07-10 08:36:24 +00:00
|
|
|
#include "meta/types.h"
|
2001-06-17 19:53:45 +00:00
|
|
|
|
|
|
|
typedef struct _MetaUI MetaUI;
|
2015-01-01 05:55:36 +00:00
|
|
|
typedef struct _MetaUIFrame MetaUIFrame;
|
2001-06-17 19:53:45 +00:00
|
|
|
|
2001-06-20 03:01:26 +00:00
|
|
|
typedef gboolean (* MetaEventFunc) (XEvent *xevent, gpointer data);
|
|
|
|
|
2017-08-26 20:52:02 +00:00
|
|
|
MetaUI *meta_ui_new (MetaX11Display *x11_display);
|
2001-06-17 19:53:45 +00:00
|
|
|
void meta_ui_free (MetaUI *ui);
|
|
|
|
|
2004-01-10 17:16:07 +00:00
|
|
|
void meta_ui_theme_get_frame_borders (MetaUI *ui,
|
|
|
|
MetaFrameType type,
|
|
|
|
MetaFrameFlags flags,
|
2011-07-12 04:37:41 +00:00
|
|
|
MetaFrameBorders *borders);
|
2013-04-12 17:00:15 +00:00
|
|
|
|
2015-01-01 05:55:36 +00:00
|
|
|
MetaUIFrame * meta_ui_create_frame (MetaUI *ui,
|
2003-11-16 04:19:18 +00:00
|
|
|
Display *xdisplay,
|
2015-01-01 19:39:55 +00:00
|
|
|
MetaWindow *meta_window,
|
2003-11-16 04:19:18 +00:00
|
|
|
Visual *xvisual,
|
2015-01-01 05:55:36 +00:00
|
|
|
gint x,
|
|
|
|
gint y,
|
|
|
|
gint width,
|
|
|
|
gint height,
|
2009-06-13 20:45:32 +00:00
|
|
|
gulong *create_serial);
|
2003-08-16 16:32:10 +00:00
|
|
|
void meta_ui_move_resize_frame (MetaUI *ui,
|
|
|
|
Window frame,
|
|
|
|
int x,
|
|
|
|
int y,
|
|
|
|
int width,
|
|
|
|
int height);
|
2001-07-04 02:10:54 +00:00
|
|
|
|
2001-06-20 03:01:26 +00:00
|
|
|
/* GDK insists on tracking map/unmap */
|
|
|
|
void meta_ui_map_frame (MetaUI *ui,
|
|
|
|
Window xwindow);
|
|
|
|
void meta_ui_unmap_frame (MetaUI *ui,
|
|
|
|
Window xwindow);
|
2001-06-18 03:24:25 +00:00
|
|
|
|
2001-08-30 04:01:38 +00:00
|
|
|
gboolean meta_ui_window_should_not_cause_focus (Display *xdisplay,
|
|
|
|
Window xwindow);
|
2001-08-19 06:23:59 +00:00
|
|
|
|
2002-08-10 15:55:18 +00:00
|
|
|
gboolean meta_ui_window_is_widget (MetaUI *ui,
|
|
|
|
Window xwindow);
|
2019-01-23 02:25:35 +00:00
|
|
|
|
|
|
|
META_EXPORT_TEST
|
2014-09-11 14:18:21 +00:00
|
|
|
gboolean meta_ui_window_is_dummy (MetaUI *ui,
|
|
|
|
Window xwindow);
|
2002-08-10 15:55:18 +00:00
|
|
|
|
2001-06-17 19:53:45 +00:00
|
|
|
#endif
|