2008-05-02 14:49:01 -04:00
|
|
|
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
|
|
|
|
|
2008-08-18 10:10:13 -04:00
|
|
|
/*
|
2008-05-02 14:49:01 -04:00
|
|
|
* Copyright (C) 2001 Havoc Pennington
|
|
|
|
* Copyright (C) 2002, 2003, 2004 Red Hat, Inc.
|
|
|
|
* Copyright (C) 2003, 2004 Rob Adams
|
|
|
|
* Copyright (C) 2004-2006 Elijah Newren
|
|
|
|
* Copyright (C) 2008 Thomas Thurman
|
2008-08-18 10:10:13 -04:00
|
|
|
*
|
2008-05-02 14:49:01 -04: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.
|
2008-08-18 10:10:13 -04:00
|
|
|
*
|
2008-05-02 14:49:01 -04:00
|
|
|
* You should have received a copy of the GNU General Public License
|
2014-01-11 20:42:06 -05:00
|
|
|
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
2008-05-02 14:49:01 -04:00
|
|
|
*/
|
|
|
|
|
2013-02-15 13:42:08 -05:00
|
|
|
/*
|
2008-05-02 14:49:01 -04:00
|
|
|
* \file atomnames.h A list of atom names.
|
|
|
|
*
|
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 06:29:20 -04:00
|
|
|
* This is a list of the names of all the X atoms that Mutter uses.
|
2008-05-02 14:49:01 -04:00
|
|
|
* Each is wrapped in a macro "item()" which is undefined here; the
|
|
|
|
* idea is that when you need to make a big list of all the X atoms,
|
|
|
|
* you can define item(), include this file, and then undefine it
|
|
|
|
* again.
|
|
|
|
*
|
|
|
|
* If you also define EWMH_ATOMS_ONLY then you will only get _NET_WM_*
|
2008-10-23 00:09:14 -04:00
|
|
|
* atoms rather than all of them.
|
2008-05-02 14:49:01 -04:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef item
|
|
|
|
#error "item(x) must be defined when you include atomnames.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef EWMH_ATOMS_ONLY
|
|
|
|
|
2008-08-18 10:10:13 -04:00
|
|
|
item(WM_PROTOCOLS) /* MUST BE FIRST */
|
2008-05-02 14:49:01 -04:00
|
|
|
item(WM_TAKE_FOCUS)
|
|
|
|
item(WM_DELETE_WINDOW)
|
|
|
|
item(WM_STATE)
|
|
|
|
item(_MOTIF_WM_HINTS)
|
|
|
|
item(WM_CHANGE_STATE)
|
|
|
|
item(SM_CLIENT_ID)
|
|
|
|
item(WM_CLIENT_LEADER)
|
|
|
|
item(WM_WINDOW_ROLE)
|
|
|
|
item(UTF8_STRING)
|
|
|
|
item(WM_ICON_SIZE)
|
|
|
|
item(_KWM_WIN_ICON)
|
2010-01-18 05:12:17 -05:00
|
|
|
item(_MUTTER_HINTS)
|
2011-03-19 05:31:25 -04:00
|
|
|
item(_GTK_THEME_VARIANT)
|
2012-01-17 13:27:10 -05:00
|
|
|
item(_GTK_APPLICATION_ID)
|
|
|
|
item(_GTK_UNIQUE_BUS_NAME)
|
|
|
|
item(_GTK_APPLICATION_OBJECT_PATH)
|
|
|
|
item(_GTK_WINDOW_OBJECT_PATH)
|
|
|
|
item(_GTK_APP_MENU_OBJECT_PATH)
|
|
|
|
item(_GTK_MENUBAR_OBJECT_PATH)
|
2013-08-08 16:58:20 -04:00
|
|
|
item(_GTK_FRAME_EXTENTS)
|
2014-03-13 17:13:22 -04:00
|
|
|
item(_GTK_SHOW_WINDOW_MENU)
|
2017-08-18 19:21:37 -04:00
|
|
|
item(_GTK_EDGE_CONSTRAINTS)
|
2018-12-31 09:29:11 -05:00
|
|
|
item(_GTK_WORKAREAS)
|
2009-09-03 14:43:49 -04:00
|
|
|
item(_GNOME_WM_KEYBINDINGS)
|
2008-05-02 14:49:01 -04:00
|
|
|
item(_GNOME_PANEL_ACTION)
|
|
|
|
item(_GNOME_PANEL_ACTION_RUN_DIALOG)
|
display: Ensure that we ignore our own focus events for focus predictions
When we set the input focus, we first set the predicted window,
and then try to process focus events. But as XI_FocusOut on the
existing window comes before XI_FocusIn on the new window, we'll
see the focus out on the old window and think the focus is going
to nothing, which makes mutter think the prediction failed.
This didn't really matter as nothing paid attention to the focus
window changing, but with gnome-shell's focus rework, we'll try
and drop keyboard focus in events like these.
Fix this by making sure that we ignore focus window changes of our
own cause when updating the focus window field, by ignoring all
focus events that have a serial the same as the focus request or
lower. Note that if mutter doens't make any requests after the
focus request, this could be racy, as another client could steal
the focus, but mutter would ignore it as the serial was the same.
Bump the serial by making a dummy ChangeProperty request to a
mutter-controlled window in this case.
https://bugzilla.gnome.org/show_bug.cgi?id=701017
2013-05-25 16:09:08 -04:00
|
|
|
item(_MUTTER_TIMESTAMP_PING)
|
|
|
|
item(_MUTTER_FOCUS_SET)
|
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 06:29:20 -04:00
|
|
|
item(_MUTTER_SENTINEL)
|
|
|
|
item(_MUTTER_VERSION)
|
x11: Integrate frames client into Mutter
Replace the in-process implementation of frames with the external
frames client.
When a client window is created and managed by Mutter, Mutter will
determine whether it is a window that requires decorations and
hint the creation of a frame for it by setting the _MUTTER_NEEDS_FRAME
property on the client window.
After the frames client created a window that has the _MUTTER_FRAME_FOR
property, Mutter will proceed to reparent the client window on the
frame window, and show them as a single unit.
Rendering and event handling on the frame window will be performed by
the external client, Mutter is still responsible for everything else,
namely resizing client and frame window in synchronization, and
managing updates on the MetaWindowActor.
In order to let the frame be managed by the external client, Mutter
needs to change the way some properties are forwarded to the client
and/or frame windows. Some properties are necessary to keep propagating
to the client window only, some others need to happen on the frame
window now, and some others needs to be propagated on both so they
are synchronized about the behavior.
Also, some events that were previously totally unexpected in frame
windows are now susceptible to happen, so must be allowed now.
MetaFrame in src/core/frame.c now acts as the wrapper of foreign
windows created by the frames client, from the Mutter side. Location,
size, and lifetime are still largely in control of Mutter, some
details like visible/invisible borders are obtained from the client
instead (through the _MUTTER_FRAME_EXTENTS and _GTK_FRAME_EXTENTS
properties, respectively).
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2175>
2022-09-08 04:35:47 -04:00
|
|
|
item(_MUTTER_FRAME_FOR)
|
|
|
|
item(_MUTTER_FRAME_EXTENTS)
|
|
|
|
item(_MUTTER_NEEDS_FRAME)
|
2008-05-02 14:49:01 -04:00
|
|
|
item(WM_CLIENT_MACHINE)
|
|
|
|
item(MANAGER)
|
|
|
|
item(TARGETS)
|
|
|
|
item(MULTIPLE)
|
|
|
|
item(TIMESTAMP)
|
|
|
|
item(VERSION)
|
|
|
|
item(ATOM_PAIR)
|
2013-09-04 05:11:39 -04:00
|
|
|
item(_XKB_RULES_NAMES)
|
2014-03-20 13:12:43 -04:00
|
|
|
item(WL_SURFACE_ID)
|
2017-10-20 04:47:24 -04:00
|
|
|
item(_XWAYLAND_MAY_GRAB_KEYBOARD)
|
2019-09-03 10:18:00 -04:00
|
|
|
item(_XWAYLAND_RANDR_EMU_MONITOR_RECTS)
|
2019-11-19 08:08:45 -05:00
|
|
|
item(_XWAYLAND_ALLOW_COMMITS)
|
2008-05-02 14:49:01 -04:00
|
|
|
|
|
|
|
/* Oddities: These are used, and we need atoms for them,
|
|
|
|
* but when we need all _NET_WM hints (i.e. when we're making
|
|
|
|
* lists of which _NET_WM hints we support in order to advertise
|
|
|
|
* it) we haven't historically listed them. I don't know what
|
|
|
|
* the reason for this is. It may be a bug.
|
|
|
|
*/
|
|
|
|
item(_NET_WM_SYNC_REQUEST)
|
|
|
|
item(_NET_WM_SYNC_REQUEST_COUNTER)
|
|
|
|
item(_NET_WM_VISIBLE_NAME)
|
|
|
|
item(_NET_SUPPORTING_WM_CHECK)
|
|
|
|
|
|
|
|
/* But I suppose it's quite reasonable not to advertise using
|
|
|
|
* _NET_SUPPORTED that we support _NET_SUPPORTED :)
|
|
|
|
*/
|
|
|
|
item(_NET_SUPPORTED)
|
|
|
|
|
|
|
|
#endif /* !EWMH_ATOMS_ONLY */
|
|
|
|
|
|
|
|
/**************************************************************************/
|
|
|
|
|
|
|
|
item(_NET_WM_NAME)
|
|
|
|
item(_NET_CLOSE_WINDOW)
|
|
|
|
item(_NET_WM_STATE)
|
|
|
|
item(_NET_WM_STATE_MAXIMIZED_HORZ)
|
|
|
|
item(_NET_WM_STATE_MAXIMIZED_VERT)
|
|
|
|
item(_NET_WM_DESKTOP)
|
|
|
|
item(_NET_NUMBER_OF_DESKTOPS)
|
|
|
|
item(_NET_CURRENT_DESKTOP)
|
|
|
|
item(_NET_WM_WINDOW_TYPE)
|
|
|
|
item(_NET_WM_WINDOW_TYPE_DESKTOP)
|
|
|
|
item(_NET_WM_WINDOW_TYPE_DOCK)
|
|
|
|
item(_NET_WM_WINDOW_TYPE_TOOLBAR)
|
|
|
|
item(_NET_WM_WINDOW_TYPE_MENU)
|
2008-11-23 14:28:40 -05:00
|
|
|
item(_NET_WM_WINDOW_TYPE_UTILITY)
|
|
|
|
item(_NET_WM_WINDOW_TYPE_SPLASH)
|
2008-05-02 14:49:01 -04:00
|
|
|
item(_NET_WM_WINDOW_TYPE_DIALOG)
|
2008-11-23 14:28:40 -05:00
|
|
|
item(_NET_WM_WINDOW_TYPE_DROPDOWN_MENU)
|
|
|
|
item(_NET_WM_WINDOW_TYPE_POPUP_MENU)
|
|
|
|
item(_NET_WM_WINDOW_TYPE_TOOLTIP)
|
|
|
|
item(_NET_WM_WINDOW_TYPE_NOTIFICATION)
|
|
|
|
item(_NET_WM_WINDOW_TYPE_COMBO)
|
|
|
|
item(_NET_WM_WINDOW_TYPE_DND)
|
2008-05-02 14:49:01 -04:00
|
|
|
item(_NET_WM_WINDOW_TYPE_NORMAL)
|
|
|
|
item(_NET_WM_STATE_MODAL)
|
|
|
|
item(_NET_CLIENT_LIST)
|
|
|
|
item(_NET_CLIENT_LIST_STACKING)
|
|
|
|
item(_NET_WM_STATE_SKIP_TASKBAR)
|
|
|
|
item(_NET_WM_STATE_SKIP_PAGER)
|
|
|
|
item(_NET_WM_ICON)
|
|
|
|
item(_NET_WM_ICON_GEOMETRY)
|
|
|
|
item(_NET_WM_MOVERESIZE)
|
|
|
|
item(_NET_ACTIVE_WINDOW)
|
|
|
|
item(_NET_WM_STRUT)
|
|
|
|
item(_NET_WM_STATE_HIDDEN)
|
|
|
|
item(_NET_WM_STATE_FULLSCREEN)
|
|
|
|
item(_NET_WM_PING)
|
|
|
|
item(_NET_WM_PID)
|
|
|
|
item(_NET_WORKAREA)
|
|
|
|
item(_NET_SHOWING_DESKTOP)
|
|
|
|
item(_NET_DESKTOP_LAYOUT)
|
|
|
|
item(_NET_DESKTOP_NAMES)
|
|
|
|
item(_NET_WM_ALLOWED_ACTIONS)
|
|
|
|
item(_NET_WM_ACTION_MOVE)
|
|
|
|
item(_NET_WM_ACTION_RESIZE)
|
|
|
|
item(_NET_WM_ACTION_SHADE)
|
|
|
|
item(_NET_WM_ACTION_STICK)
|
|
|
|
item(_NET_WM_ACTION_MAXIMIZE_HORZ)
|
|
|
|
item(_NET_WM_ACTION_MAXIMIZE_VERT)
|
|
|
|
item(_NET_WM_ACTION_CHANGE_DESKTOP)
|
|
|
|
item(_NET_WM_ACTION_CLOSE)
|
|
|
|
item(_NET_WM_STATE_ABOVE)
|
|
|
|
item(_NET_WM_STATE_BELOW)
|
|
|
|
item(_NET_STARTUP_ID)
|
|
|
|
item(_NET_WM_STRUT_PARTIAL)
|
|
|
|
item(_NET_WM_ACTION_FULLSCREEN)
|
|
|
|
item(_NET_WM_ACTION_MINIMIZE)
|
|
|
|
item(_NET_FRAME_EXTENTS)
|
|
|
|
item(_NET_REQUEST_FRAME_EXTENTS)
|
|
|
|
item(_NET_WM_USER_TIME)
|
|
|
|
item(_NET_WM_STATE_DEMANDS_ATTENTION)
|
|
|
|
item(_NET_MOVERESIZE_WINDOW)
|
|
|
|
item(_NET_DESKTOP_GEOMETRY)
|
|
|
|
item(_NET_DESKTOP_VIEWPORT)
|
|
|
|
item(_NET_WM_USER_TIME_WINDOW)
|
|
|
|
item(_NET_WM_ACTION_ABOVE)
|
|
|
|
item(_NET_WM_ACTION_BELOW)
|
2008-10-23 00:09:14 -04:00
|
|
|
item(_NET_WM_STATE_STICKY)
|
2008-11-16 21:57:20 -05:00
|
|
|
item(_NET_WM_FULLSCREEN_MONITORS)
|
2011-10-26 14:00:18 -04:00
|
|
|
item(_NET_WM_STATE_FOCUSED)
|
2012-08-30 02:40:18 -04:00
|
|
|
item(_NET_WM_BYPASS_COMPOSITOR)
|
2013-01-14 20:45:31 -05:00
|
|
|
item(_NET_WM_OPAQUE_REGION)
|
2011-06-13 18:09:59 -04:00
|
|
|
item(_NET_WM_FRAME_DRAWN)
|
2012-11-12 14:11:08 -05:00
|
|
|
item(_NET_WM_FRAME_TIMINGS)
|
2013-12-06 13:44:31 -05:00
|
|
|
item(_NET_WM_WINDOW_OPACITY)
|
2017-09-29 10:57:22 -04:00
|
|
|
item(_NET_RESTACK_WINDOW)
|
2008-05-02 14:49:01 -04:00
|
|
|
|
|
|
|
/* eof atomnames.h */
|
|
|
|
|