2006-10-01 18:30:10 -04: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 06:29:20 -04:00
|
|
|
/* Mutter X display handler */
|
2001-05-30 11:36:31 -04:00
|
|
|
|
2014-05-02 09:34:02 -04:00
|
|
|
/*
|
2001-05-30 11:36:31 -04:00
|
|
|
* Copyright (C) 2001 Havoc Pennington
|
2002-12-09 22:23:04 -05:00
|
|
|
* Copyright (C) 2002 Red Hat, Inc.
|
2004-02-22 20:48:29 -05:00
|
|
|
* Copyright (C) 2003 Rob Adams
|
2006-01-10 14:43:21 -05:00
|
|
|
* Copyright (C) 2004-2006 Elijah Newren
|
2014-05-02 09:34:02 -04:00
|
|
|
*
|
2001-05-30 11:36:31 -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.
|
2014-05-02 09:34:02 -04:00
|
|
|
*
|
2001-05-30 11:36:31 -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/>.
|
2001-05-30 11:36:31 -04:00
|
|
|
*/
|
|
|
|
|
2008-05-18 20:00:09 -04:00
|
|
|
#ifndef META_DISPLAY_PRIVATE_H
|
|
|
|
#define META_DISPLAY_PRIVATE_H
|
2001-05-30 11:36:31 -04:00
|
|
|
|
2018-07-10 04:36:24 -04:00
|
|
|
#include "meta/display.h"
|
2002-10-26 23:03:32 -04:00
|
|
|
|
2001-05-30 11:36:31 -04:00
|
|
|
#include <glib.h>
|
|
|
|
|
2018-07-10 04:36:24 -04:00
|
|
|
#include "clutter/clutter.h"
|
|
|
|
#include "core/keybindings-private.h"
|
|
|
|
#include "core/meta-gesture-tracker-private.h"
|
2020-07-15 16:38:00 -04:00
|
|
|
#include "core/meta-pad-action-mapper.h"
|
2018-07-10 04:36:24 -04:00
|
|
|
#include "core/stack-tracker.h"
|
|
|
|
#include "core/startup-notification-private.h"
|
|
|
|
#include "meta/barrier.h"
|
|
|
|
#include "meta/boxes.h"
|
|
|
|
#include "meta/common.h"
|
2018-11-23 05:48:53 -05:00
|
|
|
#include "meta/meta-selection.h"
|
2018-07-10 04:36:24 -04:00
|
|
|
#include "meta/prefs.h"
|
2002-12-09 22:23:04 -05:00
|
|
|
|
2017-08-26 16:35:18 -04:00
|
|
|
typedef struct _MetaBell MetaBell;
|
2002-04-28 00:52:26 -04:00
|
|
|
typedef struct _MetaStack MetaStack;
|
2001-05-30 11:36:31 -04:00
|
|
|
|
2018-12-19 03:04:25 -05:00
|
|
|
typedef enum
|
|
|
|
{
|
2009-06-15 15:32:23 -04:00
|
|
|
META_LIST_DEFAULT = 0, /* normal windows */
|
|
|
|
META_LIST_INCLUDE_OVERRIDE_REDIRECT = 1 << 0, /* normal and O-R */
|
2014-09-29 18:01:17 -04:00
|
|
|
META_LIST_SORTED = 1 << 1, /* sort list by mru */
|
2009-06-15 15:32:23 -04:00
|
|
|
} MetaListWindowsFlags;
|
Screw around with Anders's ping patch so he'll get plenty of CVS
2002-02-26 Havoc Pennington <hp@pobox.com>
Screw around with Anders's ping patch so he'll get plenty of CVS
conflicts. ;-)
* src/display.c (meta_display_ping_window): spew warnings
if we try to call this with CurrentTime
(meta_display_ping_timeout): remove ping from the pending pings
after it times out.
* src/util.h: added PING debug category
* src/display.c (remove_pending_pings_for_window): don't remove
"tmp" just before "tmp->next", don't break out of loop after
finding the first match
(meta_display_open): no trailing comma in array init
(event_callback): move the processing of ping replies into a
separate function
* src/screen.c (set_supported_hint): add _NET_WM_PING to supported
list
* src/display.h: change gpointer to void*
2002-02-26 Anders Carlsson <andersca@gnu.org>
* src/display.c: (ping_data_free),
(remove_pending_pings_for_window), (meta_display_open),
(event_callback), (meta_display_unregister_x_window),
(meta_display_ping_timeout), (meta_display_ping_window),
(meta_display_window_has_pending_pings):
Implement meta_display_ping_window, and filter out scroll wheel
events.
* src/display.h:
Add MetaWindowPingFunc, meta_display_ping_window and
meta_display_window_has_pending_pings.
2002-02-26 21:05:39 -05:00
|
|
|
|
2001-06-09 02:08:44 -04:00
|
|
|
#define _NET_WM_STATE_REMOVE 0 /* remove/unset property */
|
|
|
|
#define _NET_WM_STATE_ADD 1 /* add/set property */
|
|
|
|
#define _NET_WM_STATE_TOGGLE 2 /* toggle property */
|
|
|
|
|
2018-12-19 03:04:25 -05:00
|
|
|
typedef enum
|
|
|
|
{
|
2016-01-10 09:16:09 -05:00
|
|
|
META_TILE_NONE,
|
|
|
|
META_TILE_LEFT,
|
|
|
|
META_TILE_RIGHT,
|
|
|
|
META_TILE_MAXIMIZED
|
|
|
|
} MetaTileMode;
|
|
|
|
|
2017-08-26 12:37:29 -04:00
|
|
|
typedef void (* MetaDisplayWindowFunc) (MetaWindow *window,
|
|
|
|
gpointer user_data);
|
|
|
|
|
2001-05-30 11:36:31 -04:00
|
|
|
struct _MetaDisplay
|
|
|
|
{
|
2008-12-02 17:58:07 -05:00
|
|
|
GObject parent_instance;
|
2014-05-02 09:34:02 -04:00
|
|
|
|
2017-08-26 12:24:46 -04:00
|
|
|
MetaX11Display *x11_display;
|
|
|
|
|
2013-11-14 12:58:52 -05:00
|
|
|
int clutter_event_filter;
|
|
|
|
|
2011-04-26 08:12:04 -04:00
|
|
|
/* Our best guess as to the "currently" focused window (that is, the
|
|
|
|
* window that we expect will be focused at the point when the X
|
|
|
|
* server processes our next request), and the serial of the request
|
|
|
|
* or event that caused this.
|
2001-06-04 00:58:22 -04:00
|
|
|
*/
|
|
|
|
MetaWindow *focus_window;
|
2002-08-08 00:45:13 -04:00
|
|
|
|
Big patch to cover about 6 different issues in order to correct rare
2005-02-20 Elijah Newren <newren@gmail.com>
Big patch to cover about 6 different issues in order to correct
rare problems with timestamps (make sure window selected in
tasklist actually gets focus, sanity check timestamps to avoid
rogue apps hosing the system, correct the updating of
net_wm_user_time, correctly handle timestamps of 0 when comparing
xserver timestamps for those who have had their systems up for
over 25 days or so, add some debugging information to verbose
logs, some code cleanups). Fixes all issues listed in #167358.
* src/display.h: (struct _MetaDisplay): clarify comment on
last_focus_time, introduce a new variable--last_user_time,
(XSERVER_TIME_IS_BEFORE macro): put this functionality into a
separate macro and then introduce a new macro with this name that
uses the old one but adds additional special-case checks for
timestamps that are 0, (comment to
meta_display_set_input_focus_window): add information about how
last_user_time should be used in this function
* src/display.c (santiy_check_timestamps): new function,
(meta_display_open): intialize display->last_user_time,
(meta_display_get_current_time_roundtrip): use the timestamp,
which is known to be good, in order to sanity_check_timestamps,
(event_callback): use the new meta_window_ste_user_time() function
in order to correct problems, use the timestamp of KeyPress and
ButtonPress events, which are known to be good, in order to
sanity_check_timestamps, (timestamp_too_old): new function for
common behavior of meta_display_focus_the_no_focus_window and
meta_display_set_input_focus_window, with added checking for
display->last_user_time in addition to display->last_focus_time,
(meta_display_set_input_focus_window): replace some of the code
with a call to timestamp_too_old(),
(meta_display_focus_the_no_focus_window): replace some of th ecode
with a call to timestamp_too_old()
* src/window.h: (meta_window_set_user_time): new function to
abstract the many things that need to be done when updating the
net_wm_user_time of any window
* src/window.c: (meta_window_activate): add debugging spew, make
sure the comparison is made with last_user_time NOT
last_focus_time, use meta_window_set_user_time() function in order
to correct problems, (meta_window_client_message): add a newline
to a debugging message to make them easier to read,
(meta_window_set_user_time): new function
* src/window-props.c (reload_net_wm_user_time): use the new
meta_window_ste_user_time() function in order to correct problems
2005-02-20 12:14:16 -05:00
|
|
|
/* last timestamp passed to XSetInputFocus */
|
Fix issues on 64-bit machines with timestamps by using guint32 (like gtk+
2006-09-13 Elijah Newren <newren gmail com>
* src/common.h (MetaWindowMenuFunc):
* src/core.[ch] (meta_core_user_lower_and_unfocus,
meta_core_user_focus, meta_core_show_window_menu,
meta_core_begin_grab_op, meta_core_end_grab_op):
* src/delete.c (delete_ping_reply_func, delete_ping_timeout_func,
meta_window_delete):
* src/display.[ch] (struct MetaDisplay, struct MetaPingData,
sanity_check_timestamps, meta_display_open, event_callback,
meta_spew_event, meta_display_set_grab_op_cursor,
meta_display_begin_grab_op, meta_display_end_grab_op,
meta_display_ping_timeout, meta_display_ping_window,
process_pong_message, timestamp_too_old,
meta_display_set_input_focus_window):
* src/keybindings.[ch] (grab_keyboard, ungrab_keyboard,
meta_screen_grab_all_keys, meta_window_grab_all_keys,
meta_window_ungrab_all_keys, error_on_generic_command,
error_on_command, error_on_terminal_command):
* src/metacity-dialog.c (on_realize, warn_about_no_sm_support,
error_about_command, main):
* src/screen.[ch] (struct _MetaScreen, meta_screen_new,
meta_screen_show_desktop, meta_screen_apply_startup_properties):
* src/session.c (warn_about_lame_clients_and_finish_interact):
* src/window.[ch] (struct _MetaWindow,
intervening_user_event_occurred, window_activate,
meta_window_delete, meta_window_focus,
meta_window_send_icccm_message, meta_window_client_message,
menu_callback, meta_window_show_menu, struct EventScannerData,
check_use_this_motion_notify, meta_window_begin_grab_op,
meta_window_set_user_time):
* src/workspace.[ch] (focus_ancestor_or_mru_window,
meta_workspace_activate_with_focus, meta_workspace_activate,
meta_workspace_focus_default_window,
focus_ancestor_or_mru_window):
Fix issues on 64-bit machines with timestamps by using guint32
(like gtk+ does) instead of Time. #348305
2006-09-13 12:32:33 -04:00
|
|
|
guint32 last_focus_time;
|
2004-12-23 01:44:56 -05:00
|
|
|
|
Big patch to cover about 6 different issues in order to correct rare
2005-02-20 Elijah Newren <newren@gmail.com>
Big patch to cover about 6 different issues in order to correct
rare problems with timestamps (make sure window selected in
tasklist actually gets focus, sanity check timestamps to avoid
rogue apps hosing the system, correct the updating of
net_wm_user_time, correctly handle timestamps of 0 when comparing
xserver timestamps for those who have had their systems up for
over 25 days or so, add some debugging information to verbose
logs, some code cleanups). Fixes all issues listed in #167358.
* src/display.h: (struct _MetaDisplay): clarify comment on
last_focus_time, introduce a new variable--last_user_time,
(XSERVER_TIME_IS_BEFORE macro): put this functionality into a
separate macro and then introduce a new macro with this name that
uses the old one but adds additional special-case checks for
timestamps that are 0, (comment to
meta_display_set_input_focus_window): add information about how
last_user_time should be used in this function
* src/display.c (santiy_check_timestamps): new function,
(meta_display_open): intialize display->last_user_time,
(meta_display_get_current_time_roundtrip): use the timestamp,
which is known to be good, in order to sanity_check_timestamps,
(event_callback): use the new meta_window_ste_user_time() function
in order to correct problems, use the timestamp of KeyPress and
ButtonPress events, which are known to be good, in order to
sanity_check_timestamps, (timestamp_too_old): new function for
common behavior of meta_display_focus_the_no_focus_window and
meta_display_set_input_focus_window, with added checking for
display->last_user_time in addition to display->last_focus_time,
(meta_display_set_input_focus_window): replace some of the code
with a call to timestamp_too_old(),
(meta_display_focus_the_no_focus_window): replace some of th ecode
with a call to timestamp_too_old()
* src/window.h: (meta_window_set_user_time): new function to
abstract the many things that need to be done when updating the
net_wm_user_time of any window
* src/window.c: (meta_window_activate): add debugging spew, make
sure the comparison is made with last_user_time NOT
last_focus_time, use meta_window_set_user_time() function in order
to correct problems, (meta_window_client_message): add a newline
to a debugging message to make them easier to read,
(meta_window_set_user_time): new function
* src/window-props.c (reload_net_wm_user_time): use the new
meta_window_ste_user_time() function in order to correct problems
2005-02-20 12:14:16 -05:00
|
|
|
/* last user interaction time in any app */
|
Fix issues on 64-bit machines with timestamps by using guint32 (like gtk+
2006-09-13 Elijah Newren <newren gmail com>
* src/common.h (MetaWindowMenuFunc):
* src/core.[ch] (meta_core_user_lower_and_unfocus,
meta_core_user_focus, meta_core_show_window_menu,
meta_core_begin_grab_op, meta_core_end_grab_op):
* src/delete.c (delete_ping_reply_func, delete_ping_timeout_func,
meta_window_delete):
* src/display.[ch] (struct MetaDisplay, struct MetaPingData,
sanity_check_timestamps, meta_display_open, event_callback,
meta_spew_event, meta_display_set_grab_op_cursor,
meta_display_begin_grab_op, meta_display_end_grab_op,
meta_display_ping_timeout, meta_display_ping_window,
process_pong_message, timestamp_too_old,
meta_display_set_input_focus_window):
* src/keybindings.[ch] (grab_keyboard, ungrab_keyboard,
meta_screen_grab_all_keys, meta_window_grab_all_keys,
meta_window_ungrab_all_keys, error_on_generic_command,
error_on_command, error_on_terminal_command):
* src/metacity-dialog.c (on_realize, warn_about_no_sm_support,
error_about_command, main):
* src/screen.[ch] (struct _MetaScreen, meta_screen_new,
meta_screen_show_desktop, meta_screen_apply_startup_properties):
* src/session.c (warn_about_lame_clients_and_finish_interact):
* src/window.[ch] (struct _MetaWindow,
intervening_user_event_occurred, window_activate,
meta_window_delete, meta_window_focus,
meta_window_send_icccm_message, meta_window_client_message,
menu_callback, meta_window_show_menu, struct EventScannerData,
check_use_this_motion_notify, meta_window_begin_grab_op,
meta_window_set_user_time):
* src/workspace.[ch] (focus_ancestor_or_mru_window,
meta_workspace_activate_with_focus, meta_workspace_activate,
meta_workspace_focus_default_window,
focus_ancestor_or_mru_window):
Fix issues on 64-bit machines with timestamps by using guint32
(like gtk+ does) instead of Time. #348305
2006-09-13 12:32:33 -04:00
|
|
|
guint32 last_user_time;
|
Big patch to cover about 6 different issues in order to correct rare
2005-02-20 Elijah Newren <newren@gmail.com>
Big patch to cover about 6 different issues in order to correct
rare problems with timestamps (make sure window selected in
tasklist actually gets focus, sanity check timestamps to avoid
rogue apps hosing the system, correct the updating of
net_wm_user_time, correctly handle timestamps of 0 when comparing
xserver timestamps for those who have had their systems up for
over 25 days or so, add some debugging information to verbose
logs, some code cleanups). Fixes all issues listed in #167358.
* src/display.h: (struct _MetaDisplay): clarify comment on
last_focus_time, introduce a new variable--last_user_time,
(XSERVER_TIME_IS_BEFORE macro): put this functionality into a
separate macro and then introduce a new macro with this name that
uses the old one but adds additional special-case checks for
timestamps that are 0, (comment to
meta_display_set_input_focus_window): add information about how
last_user_time should be used in this function
* src/display.c (santiy_check_timestamps): new function,
(meta_display_open): intialize display->last_user_time,
(meta_display_get_current_time_roundtrip): use the timestamp,
which is known to be good, in order to sanity_check_timestamps,
(event_callback): use the new meta_window_ste_user_time() function
in order to correct problems, use the timestamp of KeyPress and
ButtonPress events, which are known to be good, in order to
sanity_check_timestamps, (timestamp_too_old): new function for
common behavior of meta_display_focus_the_no_focus_window and
meta_display_set_input_focus_window, with added checking for
display->last_user_time in addition to display->last_focus_time,
(meta_display_set_input_focus_window): replace some of the code
with a call to timestamp_too_old(),
(meta_display_focus_the_no_focus_window): replace some of th ecode
with a call to timestamp_too_old()
* src/window.h: (meta_window_set_user_time): new function to
abstract the many things that need to be done when updating the
net_wm_user_time of any window
* src/window.c: (meta_window_activate): add debugging spew, make
sure the comparison is made with last_user_time NOT
last_focus_time, use meta_window_set_user_time() function in order
to correct problems, (meta_window_client_message): add a newline
to a debugging message to make them easier to read,
(meta_window_set_user_time): new function
* src/window-props.c (reload_net_wm_user_time): use the new
meta_window_ste_user_time() function in order to correct problems
2005-02-20 12:14:16 -05:00
|
|
|
|
2005-02-21 21:11:25 -05:00
|
|
|
/* whether we're using mousenav (only relevant for sloppy&mouse focus modes;
|
|
|
|
* !mouse_mode means "keynav mode")
|
|
|
|
*/
|
|
|
|
guint mouse_mode : 1;
|
|
|
|
|
2006-04-12 14:01:20 -04:00
|
|
|
/* Helper var used when focus_new_windows setting is 'strict'; only
|
|
|
|
* relevant in 'strict' mode and if the focus window is a terminal.
|
|
|
|
* In that case, we don't allow new windows to take focus away from
|
|
|
|
* a terminal, but if the user explicitly did something that should
|
|
|
|
* allow a different window to gain focus (e.g. global keybinding or
|
|
|
|
* clicking on a dock), then we will allow the transfer.
|
2006-01-15 12:03:57 -05:00
|
|
|
*/
|
|
|
|
guint allow_terminal_deactivation : 1;
|
|
|
|
|
2001-05-31 23:00:01 -04:00
|
|
|
/*< private-ish >*/
|
2014-09-08 21:20:14 -04:00
|
|
|
GHashTable *stamps;
|
2013-09-16 05:24:01 -04:00
|
|
|
GHashTable *wayland_windows;
|
2014-04-06 15:54:47 -04:00
|
|
|
|
2002-01-03 18:28:19 -05:00
|
|
|
guint32 current_time;
|
Screw around with Anders's ping patch so he'll get plenty of CVS
2002-02-26 Havoc Pennington <hp@pobox.com>
Screw around with Anders's ping patch so he'll get plenty of CVS
conflicts. ;-)
* src/display.c (meta_display_ping_window): spew warnings
if we try to call this with CurrentTime
(meta_display_ping_timeout): remove ping from the pending pings
after it times out.
* src/util.h: added PING debug category
* src/display.c (remove_pending_pings_for_window): don't remove
"tmp" just before "tmp->next", don't break out of loop after
finding the first match
(meta_display_open): no trailing comma in array init
(event_callback): move the processing of ping replies into a
separate function
* src/screen.c (set_supported_hint): add _NET_WM_PING to supported
list
* src/display.h: change gpointer to void*
2002-02-26 Anders Carlsson <andersca@gnu.org>
* src/display.c: (ping_data_free),
(remove_pending_pings_for_window), (meta_display_open),
(event_callback), (meta_display_unregister_x_window),
(meta_display_ping_timeout), (meta_display_ping_window),
(meta_display_window_has_pending_pings):
Implement meta_display_ping_window, and filter out scroll wheel
events.
* src/display.h:
Add MetaWindowPingFunc, meta_display_ping_window and
meta_display_window_has_pending_pings.
2002-02-26 21:05:39 -05:00
|
|
|
|
2009-09-18 20:50:11 -04:00
|
|
|
/* We maintain a sequence counter, incremented for each #MetaWindow
|
|
|
|
* created. This is exposed by meta_window_get_stable_sequence()
|
|
|
|
* but is otherwise not used inside mutter.
|
|
|
|
*
|
|
|
|
* It can be useful to plugins which want to sort windows in a
|
|
|
|
* stable fashion.
|
|
|
|
*/
|
|
|
|
guint32 window_sequence_counter;
|
|
|
|
|
Screw around with Anders's ping patch so he'll get plenty of CVS
2002-02-26 Havoc Pennington <hp@pobox.com>
Screw around with Anders's ping patch so he'll get plenty of CVS
conflicts. ;-)
* src/display.c (meta_display_ping_window): spew warnings
if we try to call this with CurrentTime
(meta_display_ping_timeout): remove ping from the pending pings
after it times out.
* src/util.h: added PING debug category
* src/display.c (remove_pending_pings_for_window): don't remove
"tmp" just before "tmp->next", don't break out of loop after
finding the first match
(meta_display_open): no trailing comma in array init
(event_callback): move the processing of ping replies into a
separate function
* src/screen.c (set_supported_hint): add _NET_WM_PING to supported
list
* src/display.h: change gpointer to void*
2002-02-26 Anders Carlsson <andersca@gnu.org>
* src/display.c: (ping_data_free),
(remove_pending_pings_for_window), (meta_display_open),
(event_callback), (meta_display_unregister_x_window),
(meta_display_ping_timeout), (meta_display_ping_window),
(meta_display_window_has_pending_pings):
Implement meta_display_ping_window, and filter out scroll wheel
events.
* src/display.h:
Add MetaWindowPingFunc, meta_display_ping_window and
meta_display_window_has_pending_pings.
2002-02-26 21:05:39 -05:00
|
|
|
/* Pings which we're waiting for a reply from */
|
2014-02-15 11:33:12 -05:00
|
|
|
GSList *pending_pings;
|
2002-05-23 22:23:46 -04:00
|
|
|
|
2012-08-28 22:38:54 -04:00
|
|
|
/* Pending focus change */
|
|
|
|
guint focus_timeout_id;
|
|
|
|
|
2002-05-23 22:23:46 -04:00
|
|
|
/* Pending autoraise */
|
|
|
|
guint autoraise_timeout_id;
|
2004-10-04 17:09:08 -04:00
|
|
|
MetaWindow* autoraise_window;
|
2002-10-07 19:14:40 -04:00
|
|
|
|
2014-08-14 15:33:45 -04:00
|
|
|
MetaKeyBindingManager key_binding_manager;
|
2014-05-02 09:34:02 -04:00
|
|
|
|
2006-10-01 17:59:09 -04:00
|
|
|
/* Opening the display */
|
|
|
|
unsigned int display_opening : 1;
|
2021-11-17 17:31:11 -05:00
|
|
|
unsigned int grabbed_in_clutter : 1;
|
2006-10-01 17:59:09 -04:00
|
|
|
|
2002-06-22 01:11:04 -04:00
|
|
|
/* Closing down the display */
|
|
|
|
int closing;
|
2002-08-12 17:32:13 -04:00
|
|
|
|
2003-11-20 21:32:05 -05:00
|
|
|
/* Managed by compositor.c */
|
|
|
|
MetaCompositor *compositor;
|
2009-05-07 17:56:27 -04:00
|
|
|
|
2014-06-19 16:28:48 -04:00
|
|
|
MetaGestureTracker *gesture_tracker;
|
2014-07-21 19:14:14 -04:00
|
|
|
ClutterEventSequence *pointer_emulating_sequence;
|
2014-06-19 16:28:48 -04:00
|
|
|
|
2016-06-22 13:17:40 -04:00
|
|
|
ClutterActor *current_pad_osd;
|
2020-07-15 16:38:00 -04:00
|
|
|
MetaPadActionMapper *pad_action_mapper;
|
2016-06-22 13:17:40 -04:00
|
|
|
|
2016-02-06 08:52:03 -05:00
|
|
|
MetaStartupNotification *startup_notification;
|
2017-08-26 12:37:29 -04:00
|
|
|
|
|
|
|
MetaCursor current_cursor;
|
2017-08-26 13:03:51 -04:00
|
|
|
|
|
|
|
MetaStack *stack;
|
|
|
|
MetaStackTracker *stack_tracker;
|
2017-08-26 15:10:38 -04:00
|
|
|
|
|
|
|
GSList *startup_sequences;
|
|
|
|
|
|
|
|
guint work_area_later;
|
|
|
|
guint check_fullscreen_later;
|
2017-08-26 15:39:46 -04:00
|
|
|
|
2017-08-26 16:35:18 -04:00
|
|
|
MetaBell *bell;
|
2017-08-27 14:52:42 -04:00
|
|
|
MetaWorkspaceManager *workspace_manager;
|
2018-12-09 06:44:20 -05:00
|
|
|
|
|
|
|
MetaSoundPlayer *sound_player;
|
2018-11-19 12:15:24 -05:00
|
|
|
|
2018-11-19 13:57:15 -05:00
|
|
|
MetaSelectionSource *selection_source;
|
|
|
|
GBytes *saved_clipboard;
|
|
|
|
gchar *saved_clipboard_mimetype;
|
2018-11-19 12:15:24 -05:00
|
|
|
MetaSelection *selection;
|
2001-05-30 11:36:31 -04:00
|
|
|
};
|
|
|
|
|
2008-12-02 17:58:07 -05:00
|
|
|
struct _MetaDisplayClass
|
|
|
|
{
|
|
|
|
GObjectClass parent_class;
|
|
|
|
};
|
|
|
|
|
Big patch to cover about 6 different issues in order to correct rare
2005-02-20 Elijah Newren <newren@gmail.com>
Big patch to cover about 6 different issues in order to correct
rare problems with timestamps (make sure window selected in
tasklist actually gets focus, sanity check timestamps to avoid
rogue apps hosing the system, correct the updating of
net_wm_user_time, correctly handle timestamps of 0 when comparing
xserver timestamps for those who have had their systems up for
over 25 days or so, add some debugging information to verbose
logs, some code cleanups). Fixes all issues listed in #167358.
* src/display.h: (struct _MetaDisplay): clarify comment on
last_focus_time, introduce a new variable--last_user_time,
(XSERVER_TIME_IS_BEFORE macro): put this functionality into a
separate macro and then introduce a new macro with this name that
uses the old one but adds additional special-case checks for
timestamps that are 0, (comment to
meta_display_set_input_focus_window): add information about how
last_user_time should be used in this function
* src/display.c (santiy_check_timestamps): new function,
(meta_display_open): intialize display->last_user_time,
(meta_display_get_current_time_roundtrip): use the timestamp,
which is known to be good, in order to sanity_check_timestamps,
(event_callback): use the new meta_window_ste_user_time() function
in order to correct problems, use the timestamp of KeyPress and
ButtonPress events, which are known to be good, in order to
sanity_check_timestamps, (timestamp_too_old): new function for
common behavior of meta_display_focus_the_no_focus_window and
meta_display_set_input_focus_window, with added checking for
display->last_user_time in addition to display->last_focus_time,
(meta_display_set_input_focus_window): replace some of the code
with a call to timestamp_too_old(),
(meta_display_focus_the_no_focus_window): replace some of th ecode
with a call to timestamp_too_old()
* src/window.h: (meta_window_set_user_time): new function to
abstract the many things that need to be done when updating the
net_wm_user_time of any window
* src/window.c: (meta_window_activate): add debugging spew, make
sure the comparison is made with last_user_time NOT
last_focus_time, use meta_window_set_user_time() function in order
to correct problems, (meta_window_client_message): add a newline
to a debugging message to make them easier to read,
(meta_window_set_user_time): new function
* src/window-props.c (reload_net_wm_user_time): use the new
meta_window_ste_user_time() function in order to correct problems
2005-02-20 12:14:16 -05:00
|
|
|
#define XSERVER_TIME_IS_BEFORE_ASSUMING_REAL_TIMESTAMPS(time1, time2) \
|
2006-01-20 17:08:52 -05:00
|
|
|
( (( (time1) < (time2) ) && ( (time2) - (time1) < ((guint32)-1)/2 )) || \
|
|
|
|
(( (time1) > (time2) ) && ( (time1) - (time2) > ((guint32)-1)/2 )) \
|
Big patch to cover about 6 different issues in order to correct rare
2005-02-20 Elijah Newren <newren@gmail.com>
Big patch to cover about 6 different issues in order to correct
rare problems with timestamps (make sure window selected in
tasklist actually gets focus, sanity check timestamps to avoid
rogue apps hosing the system, correct the updating of
net_wm_user_time, correctly handle timestamps of 0 when comparing
xserver timestamps for those who have had their systems up for
over 25 days or so, add some debugging information to verbose
logs, some code cleanups). Fixes all issues listed in #167358.
* src/display.h: (struct _MetaDisplay): clarify comment on
last_focus_time, introduce a new variable--last_user_time,
(XSERVER_TIME_IS_BEFORE macro): put this functionality into a
separate macro and then introduce a new macro with this name that
uses the old one but adds additional special-case checks for
timestamps that are 0, (comment to
meta_display_set_input_focus_window): add information about how
last_user_time should be used in this function
* src/display.c (santiy_check_timestamps): new function,
(meta_display_open): intialize display->last_user_time,
(meta_display_get_current_time_roundtrip): use the timestamp,
which is known to be good, in order to sanity_check_timestamps,
(event_callback): use the new meta_window_ste_user_time() function
in order to correct problems, use the timestamp of KeyPress and
ButtonPress events, which are known to be good, in order to
sanity_check_timestamps, (timestamp_too_old): new function for
common behavior of meta_display_focus_the_no_focus_window and
meta_display_set_input_focus_window, with added checking for
display->last_user_time in addition to display->last_focus_time,
(meta_display_set_input_focus_window): replace some of the code
with a call to timestamp_too_old(),
(meta_display_focus_the_no_focus_window): replace some of th ecode
with a call to timestamp_too_old()
* src/window.h: (meta_window_set_user_time): new function to
abstract the many things that need to be done when updating the
net_wm_user_time of any window
* src/window.c: (meta_window_activate): add debugging spew, make
sure the comparison is made with last_user_time NOT
last_focus_time, use meta_window_set_user_time() function in order
to correct problems, (meta_window_client_message): add a newline
to a debugging message to make them easier to read,
(meta_window_set_user_time): new function
* src/window-props.c (reload_net_wm_user_time): use the new
meta_window_ste_user_time() function in order to correct problems
2005-02-20 12:14:16 -05:00
|
|
|
)
|
2010-04-17 14:43:08 -04:00
|
|
|
/**
|
|
|
|
* XSERVER_TIME_IS_BEFORE:
|
|
|
|
*
|
|
|
|
* See the docs for meta_display_xserver_time_is_before().
|
|
|
|
*/
|
Big patch to cover about 6 different issues in order to correct rare
2005-02-20 Elijah Newren <newren@gmail.com>
Big patch to cover about 6 different issues in order to correct
rare problems with timestamps (make sure window selected in
tasklist actually gets focus, sanity check timestamps to avoid
rogue apps hosing the system, correct the updating of
net_wm_user_time, correctly handle timestamps of 0 when comparing
xserver timestamps for those who have had their systems up for
over 25 days or so, add some debugging information to verbose
logs, some code cleanups). Fixes all issues listed in #167358.
* src/display.h: (struct _MetaDisplay): clarify comment on
last_focus_time, introduce a new variable--last_user_time,
(XSERVER_TIME_IS_BEFORE macro): put this functionality into a
separate macro and then introduce a new macro with this name that
uses the old one but adds additional special-case checks for
timestamps that are 0, (comment to
meta_display_set_input_focus_window): add information about how
last_user_time should be used in this function
* src/display.c (santiy_check_timestamps): new function,
(meta_display_open): intialize display->last_user_time,
(meta_display_get_current_time_roundtrip): use the timestamp,
which is known to be good, in order to sanity_check_timestamps,
(event_callback): use the new meta_window_ste_user_time() function
in order to correct problems, use the timestamp of KeyPress and
ButtonPress events, which are known to be good, in order to
sanity_check_timestamps, (timestamp_too_old): new function for
common behavior of meta_display_focus_the_no_focus_window and
meta_display_set_input_focus_window, with added checking for
display->last_user_time in addition to display->last_focus_time,
(meta_display_set_input_focus_window): replace some of the code
with a call to timestamp_too_old(),
(meta_display_focus_the_no_focus_window): replace some of th ecode
with a call to timestamp_too_old()
* src/window.h: (meta_window_set_user_time): new function to
abstract the many things that need to be done when updating the
net_wm_user_time of any window
* src/window.c: (meta_window_activate): add debugging spew, make
sure the comparison is made with last_user_time NOT
last_focus_time, use meta_window_set_user_time() function in order
to correct problems, (meta_window_client_message): add a newline
to a debugging message to make them easier to read,
(meta_window_set_user_time): new function
* src/window-props.c (reload_net_wm_user_time): use the new
meta_window_ste_user_time() function in order to correct problems
2005-02-20 12:14:16 -05:00
|
|
|
#define XSERVER_TIME_IS_BEFORE(time1, time2) \
|
2006-01-20 17:08:52 -05:00
|
|
|
( (time1) == 0 || \
|
Big patch to cover about 6 different issues in order to correct rare
2005-02-20 Elijah Newren <newren@gmail.com>
Big patch to cover about 6 different issues in order to correct
rare problems with timestamps (make sure window selected in
tasklist actually gets focus, sanity check timestamps to avoid
rogue apps hosing the system, correct the updating of
net_wm_user_time, correctly handle timestamps of 0 when comparing
xserver timestamps for those who have had their systems up for
over 25 days or so, add some debugging information to verbose
logs, some code cleanups). Fixes all issues listed in #167358.
* src/display.h: (struct _MetaDisplay): clarify comment on
last_focus_time, introduce a new variable--last_user_time,
(XSERVER_TIME_IS_BEFORE macro): put this functionality into a
separate macro and then introduce a new macro with this name that
uses the old one but adds additional special-case checks for
timestamps that are 0, (comment to
meta_display_set_input_focus_window): add information about how
last_user_time should be used in this function
* src/display.c (santiy_check_timestamps): new function,
(meta_display_open): intialize display->last_user_time,
(meta_display_get_current_time_roundtrip): use the timestamp,
which is known to be good, in order to sanity_check_timestamps,
(event_callback): use the new meta_window_ste_user_time() function
in order to correct problems, use the timestamp of KeyPress and
ButtonPress events, which are known to be good, in order to
sanity_check_timestamps, (timestamp_too_old): new function for
common behavior of meta_display_focus_the_no_focus_window and
meta_display_set_input_focus_window, with added checking for
display->last_user_time in addition to display->last_focus_time,
(meta_display_set_input_focus_window): replace some of the code
with a call to timestamp_too_old(),
(meta_display_focus_the_no_focus_window): replace some of th ecode
with a call to timestamp_too_old()
* src/window.h: (meta_window_set_user_time): new function to
abstract the many things that need to be done when updating the
net_wm_user_time of any window
* src/window.c: (meta_window_activate): add debugging spew, make
sure the comparison is made with last_user_time NOT
last_focus_time, use meta_window_set_user_time() function in order
to correct problems, (meta_window_client_message): add a newline
to a debugging message to make them easier to read,
(meta_window_set_user_time): new function
* src/window-props.c (reload_net_wm_user_time): use the new
meta_window_ste_user_time() function in order to correct problems
2005-02-20 12:14:16 -05:00
|
|
|
(XSERVER_TIME_IS_BEFORE_ASSUMING_REAL_TIMESTAMPS(time1, time2) && \
|
2006-01-20 17:08:52 -05:00
|
|
|
(time2) != 0) \
|
2004-12-23 01:44:56 -05:00
|
|
|
)
|
|
|
|
|
2021-03-03 10:05:09 -05:00
|
|
|
MetaDisplay * meta_display_new (MetaContext *context,
|
|
|
|
GError **error);
|
2001-05-31 23:00:01 -04:00
|
|
|
|
2022-05-31 05:57:37 -04:00
|
|
|
#ifdef HAVE_X11_CLIENT
|
2019-05-25 06:00:47 -04:00
|
|
|
void meta_display_manage_all_xwindows (MetaDisplay *display);
|
2022-05-31 05:57:37 -04:00
|
|
|
#endif
|
|
|
|
|
2017-08-26 13:03:51 -04:00
|
|
|
void meta_display_unmanage_windows (MetaDisplay *display,
|
|
|
|
guint32 timestamp);
|
2002-06-08 19:55:27 -04:00
|
|
|
|
2007-04-16 00:57:32 -04:00
|
|
|
/* Utility function to compare the stacking of two windows */
|
|
|
|
int meta_display_stack_cmp (const void *a,
|
|
|
|
const void *b);
|
|
|
|
|
2014-09-08 21:20:14 -04:00
|
|
|
/* Each MetaWindow is uniquely identified by a 64-bit "stamp"; unlike a
|
|
|
|
* a MetaWindow *, a stamp will never be recycled
|
|
|
|
*/
|
|
|
|
MetaWindow* meta_display_lookup_stamp (MetaDisplay *display,
|
|
|
|
guint64 stamp);
|
|
|
|
void meta_display_register_stamp (MetaDisplay *display,
|
|
|
|
guint64 *stampp,
|
|
|
|
MetaWindow *window);
|
|
|
|
void meta_display_unregister_stamp (MetaDisplay *display,
|
|
|
|
guint64 stamp);
|
|
|
|
|
|
|
|
/* A "stack id" is a XID or a stamp */
|
|
|
|
#define META_STACK_ID_IS_X11(id) ((id) < G_GUINT64_CONSTANT(0x100000000))
|
2019-01-22 21:25:35 -05:00
|
|
|
|
|
|
|
META_EXPORT_TEST
|
2014-09-08 21:20:14 -04:00
|
|
|
MetaWindow* meta_display_lookup_stack_id (MetaDisplay *display,
|
|
|
|
guint64 stack_id);
|
|
|
|
|
|
|
|
/* for debug logging only; returns a human-description of the stack
|
|
|
|
* ID - a small number of buffers are recycled, so the result must
|
|
|
|
* be used immediately or copied */
|
|
|
|
const char *meta_display_describe_stack_id (MetaDisplay *display,
|
|
|
|
guint64 stack_id);
|
|
|
|
|
2013-09-16 05:24:01 -04:00
|
|
|
void meta_display_register_wayland_window (MetaDisplay *display,
|
|
|
|
MetaWindow *window);
|
|
|
|
void meta_display_unregister_wayland_window (MetaDisplay *display,
|
|
|
|
MetaWindow *window);
|
|
|
|
|
2009-10-13 10:34:34 -04:00
|
|
|
void meta_display_notify_window_created (MetaDisplay *display,
|
|
|
|
MetaWindow *window);
|
|
|
|
|
2019-01-22 21:25:35 -05:00
|
|
|
META_EXPORT_TEST
|
2009-06-15 15:32:23 -04:00
|
|
|
GSList* meta_display_list_windows (MetaDisplay *display,
|
|
|
|
MetaListWindowsFlags flags);
|
2001-05-30 11:36:31 -04:00
|
|
|
|
2017-08-26 12:37:29 -04:00
|
|
|
void meta_display_reload_cursor (MetaDisplay *display);
|
Patch to provide extra cues to the user when using window menu move and
2002-08-08 Craig Black <blackc@speakeasy.net>
Patch to provide extra cues to the user when using
window menu move and resize, #85724.
* src/common.h: add new cursors
* src/display.c: (grab_op_is_mouse)
(meta_display_create_x_cursor), (xcursor_for_op),
(meta_display_set_grab_op_cursor),
(meta_display_begin_grab_op):
The keyboard move and resize grab ops now also use the mouse.
Allow the grab cursor to be changed during the grab op.
Hold onto the initial grab position in case of reset.
* src/display.h: save the initial grab position
* src/keybindings.c: (process_keyboard_move_grab),
(process_keyboard_resize_grab), (handle_begin_move),
(handle_begin_resize):
The keyboard move and resize grab ops now also use the mouse.
* src/window.c: (meta_window_client_message), (menu_callback),
(update_move), (update_resize),
(meta_window_handle_mouse_grab_op_event), (warp_pointer),
(meta_window_warp_pointer), (meta_window_begin_grab_op),
(meta_window_update_resize_grab_op):
When moving or resizing a window use the last grab position
in computing change increment.
Provide support for warping the mouse pointer.
* src/window.h: new warp pointer and grab op helper functions
2002-08-09 00:27:23 -04:00
|
|
|
|
2001-07-25 23:14:45 -04:00
|
|
|
void meta_display_grab_window_buttons (MetaDisplay *display,
|
2023-04-12 04:21:54 -04:00
|
|
|
MetaWindow *window);
|
2001-07-25 23:14:45 -04:00
|
|
|
void meta_display_ungrab_window_buttons (MetaDisplay *display,
|
2023-04-12 04:21:54 -04:00
|
|
|
MetaWindow *window);
|
2001-07-11 02:22:00 -04:00
|
|
|
|
2001-12-10 23:03:58 -05:00
|
|
|
void meta_display_grab_focus_window_button (MetaDisplay *display,
|
2003-10-13 16:15:40 -04:00
|
|
|
MetaWindow *window);
|
2001-12-10 23:03:58 -05:00
|
|
|
void meta_display_ungrab_focus_window_button (MetaDisplay *display,
|
2003-10-13 16:15:40 -04:00
|
|
|
MetaWindow *window);
|
2001-12-10 02:48:21 -05:00
|
|
|
|
2002-01-05 22:15:49 -05:00
|
|
|
/* utility goo */
|
2002-03-02 10:26:07 -05:00
|
|
|
const char* meta_event_mode_to_string (int m);
|
|
|
|
const char* meta_event_detail_to_string (int d);
|
2002-01-05 22:15:49 -05:00
|
|
|
|
2002-02-06 22:25:34 -05:00
|
|
|
void meta_display_queue_retheme_all_windows (MetaDisplay *display);
|
|
|
|
|
2014-05-20 14:48:08 -04:00
|
|
|
void meta_display_ping_window (MetaWindow *window,
|
|
|
|
guint32 serial);
|
|
|
|
void meta_display_pong_for_serial (MetaDisplay *display,
|
|
|
|
guint32 serial);
|
2014-02-15 11:33:12 -05:00
|
|
|
|
2020-02-14 03:44:43 -05:00
|
|
|
MetaGravity meta_resize_gravity_from_grab_op (MetaGrabOp op);
|
2002-03-17 12:22:23 -05:00
|
|
|
|
2002-12-09 22:23:04 -05:00
|
|
|
gboolean meta_grab_op_is_moving (MetaGrabOp op);
|
|
|
|
gboolean meta_grab_op_is_resizing (MetaGrabOp op);
|
2014-04-20 11:45:38 -04:00
|
|
|
gboolean meta_grab_op_is_mouse (MetaGrabOp op);
|
2014-03-20 15:29:30 -04:00
|
|
|
gboolean meta_grab_op_is_keyboard (MetaGrabOp op);
|
2002-12-09 22:23:04 -05:00
|
|
|
|
2004-10-04 17:09:08 -04:00
|
|
|
void meta_display_queue_autoraise_callback (MetaDisplay *display,
|
|
|
|
MetaWindow *window);
|
|
|
|
void meta_display_remove_autoraise_callback (MetaDisplay *display);
|
|
|
|
|
2008-12-02 18:13:11 -05:00
|
|
|
void meta_display_overlay_key_activate (MetaDisplay *display);
|
2013-10-03 18:03:53 -04:00
|
|
|
void meta_display_accelerator_activate (MetaDisplay *display,
|
|
|
|
guint action,
|
|
|
|
ClutterKeyEvent *event);
|
2013-04-10 07:34:26 -04:00
|
|
|
gboolean meta_display_modifiers_accelerator_activate (MetaDisplay *display);
|
2008-12-02 18:13:11 -05:00
|
|
|
|
2014-03-11 13:45:39 -04:00
|
|
|
void meta_display_sync_wayland_input_focus (MetaDisplay *display);
|
2014-03-20 15:29:30 -04:00
|
|
|
void meta_display_update_focus_window (MetaDisplay *display,
|
2018-12-30 12:25:08 -05:00
|
|
|
MetaWindow *window);
|
2014-03-20 15:29:30 -04:00
|
|
|
|
|
|
|
void meta_display_sanity_check_timestamps (MetaDisplay *display,
|
|
|
|
guint32 timestamp);
|
2014-03-20 16:06:24 -04:00
|
|
|
gboolean meta_display_timestamp_too_old (MetaDisplay *display,
|
|
|
|
guint32 *timestamp);
|
2014-03-11 13:45:39 -04:00
|
|
|
|
2014-07-08 12:16:11 -04:00
|
|
|
void meta_display_remove_pending_pings_for_window (MetaDisplay *display,
|
|
|
|
MetaWindow *window);
|
|
|
|
|
2014-06-19 16:28:48 -04:00
|
|
|
MetaGestureTracker * meta_display_get_gesture_tracker (MetaDisplay *display);
|
|
|
|
|
2014-05-08 18:35:49 -04:00
|
|
|
gboolean meta_display_show_restart_message (MetaDisplay *display,
|
|
|
|
const char *message);
|
|
|
|
gboolean meta_display_request_restart (MetaDisplay *display);
|
|
|
|
|
2014-12-29 20:20:07 -05:00
|
|
|
gboolean meta_display_show_resize_popup (MetaDisplay *display,
|
|
|
|
gboolean show,
|
|
|
|
MetaRectangle *rect,
|
|
|
|
int display_w,
|
|
|
|
int display_h);
|
|
|
|
|
2017-08-26 16:52:02 -04:00
|
|
|
void meta_set_is_restart (gboolean whether);
|
2014-05-08 18:35:49 -04:00
|
|
|
|
2014-07-21 20:07:19 -04:00
|
|
|
void meta_display_cancel_touch (MetaDisplay *display);
|
|
|
|
|
2014-08-15 13:12:22 -04:00
|
|
|
gboolean meta_display_windows_are_interactable (MetaDisplay *display);
|
|
|
|
|
2016-12-28 06:03:29 -05:00
|
|
|
void meta_display_show_tablet_mapping_notification (MetaDisplay *display,
|
|
|
|
ClutterInputDevice *pad,
|
|
|
|
const gchar *pretty_name);
|
|
|
|
|
|
|
|
void meta_display_notify_pad_group_switch (MetaDisplay *display,
|
|
|
|
ClutterInputDevice *pad,
|
|
|
|
const gchar *pretty_name,
|
|
|
|
guint n_group,
|
|
|
|
guint n_mode,
|
|
|
|
guint n_modes);
|
|
|
|
|
2017-08-26 12:37:29 -04:00
|
|
|
void meta_display_foreach_window (MetaDisplay *display,
|
|
|
|
MetaListWindowsFlags flags,
|
|
|
|
MetaDisplayWindowFunc func,
|
|
|
|
gpointer data);
|
|
|
|
|
2017-08-26 13:03:51 -04:00
|
|
|
void meta_display_restacked (MetaDisplay *display);
|
|
|
|
|
2017-08-26 15:10:38 -04:00
|
|
|
gboolean meta_display_apply_startup_properties (MetaDisplay *display,
|
|
|
|
MetaWindow *window);
|
|
|
|
|
|
|
|
void meta_display_queue_workarea_recalc (MetaDisplay *display);
|
|
|
|
void meta_display_queue_check_fullscreen (MetaDisplay *display);
|
|
|
|
|
2018-09-21 11:49:36 -04:00
|
|
|
MetaWindow *meta_display_get_window_from_id (MetaDisplay *display,
|
|
|
|
uint64_t window_id);
|
|
|
|
uint64_t meta_display_generate_window_id (MetaDisplay *display);
|
|
|
|
|
2019-11-19 11:32:27 -05:00
|
|
|
void meta_display_init_x11 (MetaDisplay *display,
|
|
|
|
GCancellable *cancellable,
|
|
|
|
GAsyncReadyCallback callback,
|
|
|
|
gpointer user_data);
|
|
|
|
gboolean meta_display_init_x11_finish (MetaDisplay *display,
|
|
|
|
GAsyncResult *result,
|
|
|
|
GError **error);
|
|
|
|
|
2018-12-10 07:40:54 -05:00
|
|
|
void meta_display_shutdown_x11 (MetaDisplay *display);
|
|
|
|
|
2022-01-28 18:49:50 -05:00
|
|
|
void meta_display_queue_window (MetaDisplay *display,
|
|
|
|
MetaWindow *window,
|
|
|
|
MetaQueueType queue_types);
|
|
|
|
|
|
|
|
void meta_display_unqueue_window (MetaDisplay *display,
|
|
|
|
MetaWindow *window,
|
|
|
|
MetaQueueType queue_types);
|
|
|
|
|
2022-05-13 17:04:56 -04:00
|
|
|
void meta_display_flush_queued_window (MetaDisplay *display,
|
|
|
|
MetaWindow *window,
|
|
|
|
MetaQueueType queue_types);
|
|
|
|
|
2001-05-30 11:36:31 -04:00
|
|
|
#endif
|