marco 1.29.1
Window manager
Loading...
Searching...
No Matches
display-private.h File Reference
View source
#include <glib.h>
#include <X11/Xlib.h>
#include "eventqueue.h"
#include "common.h"
#include "boxes.h"
#include "display.h"
#include "atomnames.h"
Include dependency graph for display-private.h:
This graph shows which files directly or indirectly include this file:

Data Structures

struct  _MetaDisplay
 

Macros

#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 */
 
#define N_IGNORED_SERIALS   4
 
#define item(x)   Atom atom_##x;
 
#define META_DISPLAY_HAS_XSYNC(display)   FALSE
 
#define META_DISPLAY_HAS_SHAPE(display)   FALSE
 
#define META_DISPLAY_HAS_RENDER(display)   FALSE
 
#define META_DISPLAY_HAS_COMPOSITE(display)   FALSE
 
#define META_DISPLAY_HAS_DAMAGE(display)   FALSE
 
#define META_DISPLAY_HAS_XFIXES(display)   FALSE
 
#define XSERVER_TIME_IS_BEFORE_ASSUMING_REAL_TIMESTAMPS(time1, time2)
 
#define XSERVER_TIME_IS_BEFORE(time1, time2)
 

Typedefs

typedef struct _MetaKeyBinding MetaKeyBinding
 
typedef struct _MetaStack MetaStack
 
typedef struct _MetaUISlave MetaUISlave
 
typedef struct _MetaWorkspace MetaWorkspace
 
typedef struct _MetaGroupPropHooks MetaGroupPropHooks
 
typedef struct MetaEdgeResistanceData MetaEdgeResistanceData
 
typedef void(* MetaWindowPingFunc) (MetaDisplay *display, Window xwindow, guint32 timestamp, gpointer user_data)
 

Enumerations

enum  MetaTileMode {
  META_TILE_NONE , META_TILE_LEFT , META_TILE_RIGHT , META_TILE_MAXIMIZED ,
  META_TILE_TOP_LEFT , META_TILE_TOP_RIGHT , META_TILE_BOTTOM_LEFT , META_TILE_BOTTOM_RIGHT
}
 
enum  MetaTabList { META_TAB_LIST_NORMAL , META_TAB_LIST_DOCKS , META_TAB_LIST_GROUP , META_TAB_LIST_NORMAL_ALL_WORKSPACES }
 
enum  MetaTabShowType { META_TAB_SHOW_ICON , META_TAB_SHOW_INSTANTLY }
 

Functions

gboolean meta_display_open (void)
 Opens a new display, sets it up, initialises all the X extensions we will need, and adds it to the list of displays.
 
void meta_display_close (MetaDisplay *display, guint32 timestamp)
 
MetaScreen * meta_display_screen_for_x_screen (MetaDisplay *display, Screen *screen)
 
MetaScreen * meta_display_screen_for_xwindow (MetaDisplay *display, Window xindow)
 
void meta_display_grab (MetaDisplay *display)
 
void meta_display_ungrab (MetaDisplay *display)
 
void meta_display_unmanage_screen (MetaDisplay *display, MetaScreen *screen, guint32 timestamp)
 
void meta_display_unmanage_windows_for_screen (MetaDisplay *display, MetaScreen *screen, guint32 timestamp)
 
int meta_display_stack_cmp (const void *a, const void *b)
 
MetaWindow * meta_display_lookup_x_window (MetaDisplay *display, Window xwindow)
 
void meta_display_register_x_window (MetaDisplay *display, Window *xwindowp, MetaWindow *window)
 
void meta_display_unregister_x_window (MetaDisplay *display, Window xwindow)
 
gboolean meta_display_xwindow_is_a_no_focus_window (MetaDisplay *display, Window xwindow)
 
GSList * meta_display_list_windows (MetaDisplay *display)
 
MetaDisplay * meta_display_for_x_display (Display *xdisplay)
 Returns the singleton MetaDisplay if "xdisplay" matches the X display it's managing; otherwise gives a warning and returns NULL.
 
MetaDisplay * meta_get_display (void)
 Accessor for the singleton MetaDisplay.
 
Cursor meta_display_create_x_cursor (MetaDisplay *display, MetaCursor cursor)
 
void meta_display_set_grab_op_cursor (MetaDisplay *display, MetaScreen *screen, MetaGrabOp op, gboolean change_pointer, Window grab_xwindow, guint32 timestamp)
 
gboolean meta_display_begin_grab_op (MetaDisplay *display, MetaScreen *screen, MetaWindow *window, MetaGrabOp op, gboolean pointer_already_grabbed, gboolean frame_action, int button, gulong modmask, guint32 timestamp, int root_x, int root_y)
 
void meta_display_end_grab_op (MetaDisplay *display, guint32 timestamp)
 
void meta_display_check_threshold_reached (MetaDisplay *display, int x, int y)
 
void meta_display_grab_window_buttons (MetaDisplay *display, Window xwindow)
 
void meta_display_ungrab_window_buttons (MetaDisplay *display, Window xwindow)
 
void meta_display_grab_focus_window_button (MetaDisplay *display, MetaWindow *window)
 
void meta_display_ungrab_focus_window_button (MetaDisplay *display, MetaWindow *window)
 
void meta_display_cleanup_edges (MetaDisplay *display)
 
void meta_display_increment_event_serial (MetaDisplay *display)
 
void meta_display_update_active_window_hint (MetaDisplay *display)
 
guint32 meta_display_get_current_time (MetaDisplay *display)
 
guint32 meta_display_get_current_time_roundtrip (MetaDisplay *display)
 
const char * meta_event_mode_to_string (int m)
 
const char * meta_event_detail_to_string (int d)
 
void meta_display_queue_retheme_all_windows (MetaDisplay *display)
 
void meta_display_retheme_all (void)
 
void meta_display_set_cursor_theme (const char *theme, int size)
 
void meta_display_ping_window (MetaDisplay *display, MetaWindow *window, guint32 timestamp, MetaWindowPingFunc ping_reply_func, MetaWindowPingFunc ping_timeout_func, void *user_data)
 
gboolean meta_display_window_has_pending_pings (MetaDisplay *display, MetaWindow *window)
 Finds whether a window has any pings waiting on it.
 
GList * meta_display_get_tab_list (MetaDisplay *display, MetaTabList type, MetaScreen *screen, MetaWorkspace *workspace)
 
MetaWindow * meta_display_get_tab_next (MetaDisplay *display, MetaTabList type, MetaScreen *screen, MetaWorkspace *workspace, MetaWindow *window, gboolean backward)
 
MetaWindow * meta_display_get_tab_current (MetaDisplay *display, MetaTabList type, MetaScreen *screen, MetaWorkspace *workspace)
 
int meta_resize_gravity_from_grab_op (MetaGrabOp op)
 
gboolean meta_grab_op_is_moving (MetaGrabOp op)
 
gboolean meta_grab_op_is_resizing (MetaGrabOp op)
 
void meta_display_devirtualize_modifiers (MetaDisplay *display, MetaVirtualModifier modifiers, unsigned int *mask)
 
void meta_display_increment_focus_sentinel (MetaDisplay *display)
 
void meta_display_decrement_focus_sentinel (MetaDisplay *display)
 
gboolean meta_display_focus_sentinel_clear (MetaDisplay *display)
 
void meta_display_set_input_focus_window (MetaDisplay *display, MetaWindow *window, gboolean focus_frame, guint32 timestamp)
 
void meta_display_focus_the_no_focus_window (MetaDisplay *display, MetaScreen *screen, guint32 timestamp)
 
void meta_display_queue_autoraise_callback (MetaDisplay *display, MetaWindow *window)
 
void meta_display_remove_autoraise_callback (MetaDisplay *display)
 

Macro Definition Documentation

◆ _NET_WM_STATE_ADD

#define _NET_WM_STATE_ADD   1 /* add/set property */

◆ _NET_WM_STATE_REMOVE

#define _NET_WM_STATE_REMOVE   0 /* remove/unset property */

◆ _NET_WM_STATE_TOGGLE

#define _NET_WM_STATE_TOGGLE   2 /* toggle property */

◆ item

#define item (   x)    Atom atom_##x;

◆ META_DISPLAY_HAS_COMPOSITE

#define META_DISPLAY_HAS_COMPOSITE (   display)    FALSE

◆ META_DISPLAY_HAS_DAMAGE

#define META_DISPLAY_HAS_DAMAGE (   display)    FALSE

◆ META_DISPLAY_HAS_RENDER

#define META_DISPLAY_HAS_RENDER (   display)    FALSE

◆ META_DISPLAY_HAS_SHAPE

#define META_DISPLAY_HAS_SHAPE (   display)    FALSE

◆ META_DISPLAY_HAS_XFIXES

#define META_DISPLAY_HAS_XFIXES (   display)    FALSE

◆ META_DISPLAY_HAS_XSYNC

#define META_DISPLAY_HAS_XSYNC (   display)    FALSE

◆ N_IGNORED_SERIALS

#define N_IGNORED_SERIALS   4

◆ XSERVER_TIME_IS_BEFORE

#define XSERVER_TIME_IS_BEFORE (   time1,
  time2 
)
Value:
( (time1) == 0 || \
(time2) != 0) \
)
#define XSERVER_TIME_IS_BEFORE_ASSUMING_REAL_TIMESTAMPS(time1, time2)
Definition display-private.h:340

◆ XSERVER_TIME_IS_BEFORE_ASSUMING_REAL_TIMESTAMPS

#define XSERVER_TIME_IS_BEFORE_ASSUMING_REAL_TIMESTAMPS (   time1,
  time2 
)
Value:
( (( (time1) < (time2) ) && ( (time2) - (time1) < ((guint32)-1)/2 )) || \
(( (time1) > (time2) ) && ( (time1) - (time2) > ((guint32)-1)/2 )) \
)

Typedef Documentation

◆ MetaEdgeResistanceData

◆ MetaGroupPropHooks

◆ MetaKeyBinding

◆ MetaStack

typedef struct _MetaStack MetaStack

◆ MetaUISlave

typedef struct _MetaUISlave MetaUISlave

◆ MetaWindowPingFunc

typedef void(* MetaWindowPingFunc) (MetaDisplay *display, Window xwindow, guint32 timestamp, gpointer user_data)

◆ MetaWorkspace

typedef struct _MetaWorkspace MetaWorkspace

Enumeration Type Documentation

◆ MetaTabList

Enumerator
META_TAB_LIST_NORMAL 
META_TAB_LIST_DOCKS 
META_TAB_LIST_GROUP 
META_TAB_LIST_NORMAL_ALL_WORKSPACES 

◆ MetaTabShowType

Enumerator
META_TAB_SHOW_ICON 
META_TAB_SHOW_INSTANTLY 

◆ MetaTileMode

Enumerator
META_TILE_NONE 
META_TILE_LEFT 
META_TILE_RIGHT 
META_TILE_MAXIMIZED 
META_TILE_TOP_LEFT 
META_TILE_TOP_RIGHT 
META_TILE_BOTTOM_LEFT 
META_TILE_BOTTOM_RIGHT 

Function Documentation

◆ meta_display_begin_grab_op()

gboolean meta_display_begin_grab_op ( MetaDisplay *  display,
MetaScreen *  screen,
MetaWindow *  window,
MetaGrabOp  op,
gboolean  pointer_already_grabbed,
gboolean  frame_action,
int  button,
gulong  modmask,
guint32  timestamp,
int  root_x,
int  root_y 
)

References _MetaDisplay::compositor, _MetaWindow::desc, FALSE, _MetaWindow::frame, _MetaDisplay::grab_anchor_root_x, _MetaDisplay::grab_anchor_root_y, _MetaDisplay::grab_anchor_window_pos, _MetaDisplay::grab_button, _MetaDisplay::grab_frame_action, _MetaDisplay::grab_have_keyboard, _MetaDisplay::grab_have_pointer, _MetaDisplay::grab_initial_window_pos, _MetaDisplay::grab_initial_x, _MetaDisplay::grab_initial_y, _MetaDisplay::grab_last_moveresize_time, _MetaDisplay::grab_last_user_action_was_snap, _MetaDisplay::grab_latest_motion_x, _MetaDisplay::grab_latest_motion_y, _MetaDisplay::grab_mask, _MetaDisplay::grab_motion_notify_time, _MetaDisplay::grab_old_window_stacking, _MetaDisplay::grab_op, grab_op_is_keyboard(), grab_op_is_mouse(), grab_op_is_mouse_only(), GRAB_OP_IS_WINDOW_SWITCH, _MetaDisplay::grab_resize_timeout_id, _MetaDisplay::grab_screen, _MetaDisplay::grab_threshold_movement_reached, _MetaDisplay::grab_tile_match, _MetaDisplay::grab_tile_mode, _MetaDisplay::grab_tile_monitor_number, _MetaDisplay::grab_was_cancelled, _MetaDisplay::grab_window, _MetaDisplay::grab_wireframe_active, _MetaDisplay::grab_xwindow, meta_compositor_begin_move(), META_DEBUG_RESIZING, META_DEBUG_WINDOW_OPS, meta_display_set_grab_op_cursor(), meta_error_trap_pop_with_return(), meta_error_trap_push(), meta_grab_op_is_moving(), meta_grab_op_is_resizing(), META_GRAB_OP_KEYBOARD_ESCAPING_DOCK, META_GRAB_OP_KEYBOARD_ESCAPING_GROUP, META_GRAB_OP_KEYBOARD_ESCAPING_NORMAL, META_GRAB_OP_KEYBOARD_ESCAPING_NORMAL_ALL_WORKSPACES, META_GRAB_OP_KEYBOARD_TABBING_DOCK, META_GRAB_OP_KEYBOARD_TABBING_GROUP, META_GRAB_OP_KEYBOARD_TABBING_NORMAL, META_GRAB_OP_KEYBOARD_TABBING_NORMAL_ALL_WORKSPACES, META_GRAB_OP_KEYBOARD_WORKSPACE_MOVING, META_GRAB_OP_KEYBOARD_WORKSPACE_SWITCHING, META_GRAB_OP_NONE, meta_prefs_get_mate_accessibility(), meta_prefs_get_raise_on_click(), meta_prefs_get_reduced_resources(), meta_resize_gravity_from_grab_op(), meta_screen_ensure_tab_popup(), meta_screen_ensure_workspace_popup(), meta_screen_grab_all_keys(), meta_stack_get_positions(), META_TAB_LIST_DOCKS, META_TAB_LIST_GROUP, META_TAB_LIST_NORMAL, META_TAB_LIST_NORMAL_ALL_WORKSPACES, META_TAB_SHOW_ICON, META_TAB_SHOW_INSTANTLY, META_TILE_BOTTOM_LEFT, META_TILE_BOTTOM_RIGHT, META_TILE_LEFT, META_TILE_NONE, META_TILE_RIGHT, META_TILE_TOP_LEFT, META_TILE_TOP_RIGHT, meta_warning(), meta_window_begin_wireframe(), meta_window_calc_showing(), meta_window_find_tile_match(), meta_window_get_client_root_coords(), meta_window_grab_all_keys(), meta_window_raise(), meta_window_refresh_resize_popup(), META_WINDOW_TILED, NULL, _MetaWindow::rect, screen, _MetaDisplay::tab_popup_mouse_pressed, _MetaWindow::tile_mode, _MetaWindow::tile_monitor_number, TRUE, _MetaDisplay::xdisplay, _MetaFrame::xwindow, and _MetaWindow::xwindow.

Referenced by do_choose_window(), event_callback(), handle_workspace_switch_or_move(), meta_core_begin_grab_op(), meta_window_begin_grab_op(), and meta_window_client_message().

Here is the call graph for this function:

◆ meta_display_check_threshold_reached()

void meta_display_check_threshold_reached ( MetaDisplay *  display,
int  x,
int  y 
)

References FALSE, _MetaDisplay::grab_initial_x, _MetaDisplay::grab_initial_y, _MetaDisplay::grab_threshold_movement_reached, meta_prefs_get_raise_on_click(), and TRUE.

Referenced by meta_window_handle_mouse_grab_op_event().

Here is the call graph for this function:

◆ meta_display_cleanup_edges()

◆ meta_display_close()

◆ meta_display_create_x_cursor()

◆ meta_display_decrement_focus_sentinel()

void meta_display_decrement_focus_sentinel ( MetaDisplay *  display)

◆ meta_display_devirtualize_modifiers()

◆ meta_display_end_grab_op()

void meta_display_end_grab_op ( MetaDisplay *  display,
guint32  timestamp 
)

References _MetaDisplay::compositor, FALSE, _MetaDisplay::grab_have_keyboard, _MetaDisplay::grab_have_pointer, _MetaDisplay::grab_old_window_stacking, _MetaDisplay::grab_op, grab_op_is_mouse(), GRAB_OP_IS_WINDOW_SWITCH, _MetaDisplay::grab_resize_popup, _MetaDisplay::grab_resize_timeout_id, _MetaDisplay::grab_screen, _MetaDisplay::grab_threshold_movement_reached, _MetaDisplay::grab_tile_match, _MetaDisplay::grab_tile_mode, _MetaDisplay::grab_tile_monitor_number, _MetaDisplay::grab_was_cancelled, _MetaDisplay::grab_window, _MetaDisplay::grab_wireframe_active, _MetaDisplay::grab_wireframe_rect, _MetaDisplay::grab_xwindow, _MetaRectangle::height, meta_compositor_end_move(), META_DEBUG_WINDOW_OPS, meta_display_cleanup_edges(), meta_grab_op_is_moving(), meta_grab_op_is_resizing(), META_GRAB_OP_KEYBOARD_WORKSPACE_MOVING, META_GRAB_OP_KEYBOARD_WORKSPACE_SWITCHING, META_GRAB_OP_NONE, meta_prefs_get_raise_on_click(), meta_resize_gravity_from_grab_op(), meta_screen_ungrab_all_keys(), META_TILE_NONE, meta_tile_preview_hide(), meta_ui_resize_popup_free(), meta_ui_tab_popup_free(), meta_window_calc_showing(), meta_window_end_wireframe(), meta_window_move(), meta_window_raise(), meta_window_resize_with_gravity(), meta_window_ungrab_all_keys(), NULL, _MetaWindow::shaken_loose, _MetaScreen::tab_popup, _MetaDisplay::tab_popup_mouse_pressed, _MetaScreen::tile_preview, TRUE, _MetaDisplay::ungrab_should_not_cause_focus_window, _MetaRectangle::width, _MetaRectangle::x, _MetaDisplay::xdisplay, and _MetaRectangle::y.

Referenced by do_choose_window(), event_callback(), handle_workspace_switch_or_move(), meta_core_end_grab_op(), meta_display_process_key_event(), meta_window_client_message(), meta_window_free(), meta_window_handle_mouse_grab_op_event(), process_tab_grab(), and process_workspace_switch_grab().

Here is the call graph for this function:

◆ meta_display_focus_sentinel_clear()

gboolean meta_display_focus_sentinel_clear ( MetaDisplay *  display)

◆ meta_display_focus_the_no_focus_window()

void meta_display_focus_the_no_focus_window ( MetaDisplay *  display,
MetaScreen *  screen,
guint32  timestamp 
)

References _MetaDisplay::active_screen, _MetaDisplay::expected_focus_window, _MetaDisplay::last_focus_time, meta_display_remove_autoraise_callback(), NULL, screen, timestamp_too_old(), and _MetaDisplay::xdisplay.

Referenced by event_callback(), focus_ancestor_or_top_window(), meta_display_open(), and meta_workspace_focus_default_window().

Here is the call graph for this function:

◆ meta_display_for_x_display()

MetaDisplay * meta_display_for_x_display ( Display *  xdisplay)

Returns the singleton MetaDisplay if "xdisplay" matches the X display it's managing; otherwise gives a warning and returns NULL.

When we were claiming to be able to manage multiple displays, this was supposed to find the display out of the list which matched that display. Now it's merely an extra sanity check.

Parameters
xdisplayAn X display
Returns
The singleton X display, or NULL if "xdisplay" isn't the one we're managing.

References meta_warning(), NULL, the_display, and _MetaDisplay::xdisplay.

Referenced by get_window(), menu_callback(), meta_core_begin_grab_op(), meta_core_end_grab_op(), meta_core_get(), meta_core_get_grab_button(), meta_core_get_grab_frame(), meta_core_get_grab_op(), meta_core_get_workspace_name_with_index(), meta_core_grab_buttons(), meta_core_increment_event_serial(), meta_core_lower_beneath_focus_window(), and meta_screen_for_x_screen().

Here is the call graph for this function:

◆ meta_display_get_current_time()

◆ meta_display_get_current_time_roundtrip()

guint32 meta_display_get_current_time_roundtrip ( MetaDisplay *  display)

◆ meta_display_get_tab_current()

MetaWindow * meta_display_get_tab_current ( MetaDisplay *  display,
MetaTabList  type,
MetaScreen *  screen,
MetaWorkspace *  workspace 
)

References _MetaDisplay::focus_window, IN_TAB_CHAIN, meta_window_located_on_workspace(), NULL, _MetaWindow::screen, and screen.

Referenced by do_choose_window().

Here is the call graph for this function:

◆ meta_display_get_tab_list()

◆ meta_display_get_tab_next()

MetaWindow * meta_display_get_tab_next ( MetaDisplay *  display,
MetaTabList  type,
MetaScreen *  screen,
MetaWorkspace *  workspace,
MetaWindow *  window,
gboolean  backward 
)

References _MetaWindow::display, find_tab_backward(), find_tab_forward(), _MetaDisplay::focus_window, meta_display_get_tab_list(), NULL, screen, and TRUE.

Referenced by do_choose_window().

Here is the call graph for this function:

◆ meta_display_grab()

◆ meta_display_grab_focus_window_button()

void meta_display_grab_focus_window_button ( MetaDisplay *  display,
MetaWindow *  window 
)

References _MetaWindow::desc, _MetaWindow::have_focus_click_grab, MAX_FOCUS_BUTTON, meta_change_button_grab(), META_FOCUS_MODE_CLICK, meta_prefs_get_focus_mode(), TRUE, and _MetaWindow::xwindow.

Referenced by meta_window_new_with_attrs(), meta_window_notify_focus(), and prefs_changed_callback().

Here is the call graph for this function:

◆ meta_display_grab_window_buttons()

void meta_display_grab_window_buttons ( MetaDisplay *  display,
Window  xwindow 
)

References FALSE, meta_change_button_grab(), NULL, TRUE, and _MetaDisplay::window_grab_modifiers.

Referenced by meta_core_grab_buttons(), meta_window_new_with_attrs(), and prefs_changed_callback().

Here is the call graph for this function:

◆ meta_display_increment_event_serial()

void meta_display_increment_event_serial ( MetaDisplay *  display)

◆ meta_display_increment_focus_sentinel()

void meta_display_increment_focus_sentinel ( MetaDisplay *  display)

References meta_display_get_current_time(), _MetaDisplay::screens, _MetaDisplay::sentinel_counter, and _MetaDisplay::xdisplay.

Referenced by idle_calc_showing(), and meta_window_show().

Here is the call graph for this function:

◆ meta_display_list_windows()

◆ meta_display_lookup_x_window()

◆ meta_display_open()

gboolean meta_display_open ( void  )

Opens a new display, sets it up, initialises all the X extensions we will need, and adds it to the list of displays.

Returns
True if the display was opened successfully, and False otherwise– that is, if the display doesn't exist or it already has a window manager.

References _, _MetaDisplay::active_screen, _MetaDisplay::allow_terminal_deactivation, _MetaDisplay::autoraise_timeout_id, _MetaDisplay::autoraise_window, _MetaDisplay::closing, _MetaDisplay::compositor, _MetaDisplay::current_time, _MetaDisplay::display_opening, enable_compositor(), _MetaDisplay::error_trap_handler, _MetaDisplay::error_trap_synced_at_last_pop, _MetaDisplay::error_traps, event_callback(), _MetaDisplay::events, _MetaDisplay::expected_focus_window, FALSE, _MetaDisplay::focus_window, _MetaDisplay::grab_edge_resistance_data, _MetaDisplay::grab_have_keyboard, _MetaDisplay::grab_old_window_stacking, _MetaDisplay::grab_op, _MetaDisplay::grab_resize_popup, _MetaDisplay::grab_resize_timeout_id, _MetaDisplay::grab_screen, _MetaDisplay::grab_tile_mode, _MetaDisplay::grab_tile_monitor_number, _MetaDisplay::grab_window, _MetaDisplay::grab_wireframe_active, _MetaDisplay::group_prop_hooks, _MetaDisplay::groups_by_leader, _MetaDisplay::have_xres, _MetaDisplay::ignored_serials, _MetaDisplay::last_focus_time, _MetaDisplay::last_user_time, _MetaDisplay::leader_window, meta_bell_init(), meta_create_offscreen_window(), meta_display_close(), meta_display_focus_the_no_focus_window(), meta_display_grab(), meta_display_init_group_prop_hooks(), meta_display_init_keys(), meta_display_init_window_prop_hooks(), meta_display_lookup_x_window(), meta_display_set_input_focus_window(), meta_display_ungrab(), meta_error_trap_pop(), meta_error_trap_push(), META_GRAB_OP_NONE, meta_is_syncing(), meta_prefs_add_listener(), meta_prefs_get_compositing_manager(), meta_prefs_get_cursor_size(), meta_prefs_get_cursor_theme(), meta_prop_set_utf8_string_hint(), meta_screen_manage_all_windows(), meta_screen_new(), META_TILE_NONE, meta_ui_add_event_func(), meta_ui_get_display(), meta_unsigned_long_equal(), meta_unsigned_long_hash(), meta_warning(), _MetaDisplay::mouse_mode, N_IGNORED_SERIALS, _MetaDisplay::name, NULL, _MetaDisplay::pending_pings, prefs_changed_callback(), _MetaDisplay::prop_hooks, screen, _MetaDisplay::screens, _MetaDisplay::sentinel_counter, _MetaDisplay::server_grab_count, _MetaDisplay::static_gravity_works, _MetaDisplay::tab_popup_mouse_pressed, the_display, _MetaDisplay::timestamp_pinging_window, TRUE, _MetaDisplay::ungrab_should_not_cause_focus_window, update_window_grab_modifiers(), _MetaDisplay::window_ids, _MetaDisplay::window_menu, _MetaDisplay::window_with_menu, _MetaDisplay::xdisplay, and _MetaDisplay::xinerama_cache_invalidated.

Referenced by main().

Here is the call graph for this function:

◆ meta_display_ping_window()

void meta_display_ping_window ( MetaDisplay *  display,
MetaWindow *  window,
guint32  timestamp,
MetaWindowPingFunc  ping_reply_func,
MetaWindowPingFunc  ping_timeout_func,
void *  user_data 
)

Referenced by meta_window_delete().

◆ meta_display_queue_autoraise_callback()

void meta_display_queue_autoraise_callback ( MetaDisplay *  display,
MetaWindow *  window 
)

◆ meta_display_queue_retheme_all_windows()

void meta_display_queue_retheme_all_windows ( MetaDisplay *  display)

References _MetaWindow::frame, meta_display_list_windows(), meta_frame_queue_draw(), META_QUEUE_MOVE_RESIZE, meta_window_queue(), _MetaFrame::need_reapply_frame_shape, NULL, TRUE, and windows.

Referenced by meta_display_retheme_all().

Here is the call graph for this function:

◆ meta_display_register_x_window()

void meta_display_register_x_window ( MetaDisplay *  display,
Window *  xwindowp,
MetaWindow *  window 
)

◆ meta_display_remove_autoraise_callback()

◆ meta_display_retheme_all()

void meta_display_retheme_all ( void  )

References meta_display_queue_retheme_all_windows(), and meta_get_display().

Referenced by event_callback(), and prefs_changed_callback().

Here is the call graph for this function:

◆ meta_display_screen_for_x_screen()

MetaScreen * meta_display_screen_for_x_screen ( MetaDisplay *  display,
Screen *  screen 
)

◆ meta_display_screen_for_xwindow()

MetaScreen * meta_display_screen_for_xwindow ( MetaDisplay *  display,
Window  xindow 
)

References meta_display_screen_for_x_screen(), meta_error_trap_pop(), meta_error_trap_push(), NULL, TRUE, and _MetaDisplay::xdisplay.

Referenced by meta_core_begin_grab_op(), meta_core_lower_beneath_focus_window(), meta_display_process_key_event(), and process_request_frame_extents().

Here is the call graph for this function:

◆ meta_display_set_cursor_theme()

void meta_display_set_cursor_theme ( const char *  theme,
int  size 
)

References meta_get_display(), meta_screen_update_cursor(), NULL, screen, _MetaDisplay::screens, and _MetaDisplay::xdisplay.

Referenced by on_monitors_changed(), and prefs_changed_callback().

Here is the call graph for this function:

◆ meta_display_set_grab_op_cursor()

void meta_display_set_grab_op_cursor ( MetaDisplay *  display,
MetaScreen *  screen,
MetaGrabOp  op,
gboolean  change_pointer,
Window  grab_xwindow,
guint32  timestamp 
)

References FALSE, _MetaDisplay::grab_have_pointer, GRAB_MASK, META_DEBUG_WINDOW_OPS, meta_error_trap_pop(), meta_error_trap_pop_with_return(), meta_error_trap_push(), NULL, screen, TRUE, xcursor_for_op(), and _MetaDisplay::xdisplay.

Referenced by meta_display_begin_grab_op(), and meta_window_update_keyboard_resize().

Here is the call graph for this function:

◆ meta_display_set_input_focus_window()

void meta_display_set_input_focus_window ( MetaDisplay *  display,
MetaWindow *  window,
gboolean  focus_frame,
guint32  timestamp 
)

◆ meta_display_stack_cmp()

int meta_display_stack_cmp ( const void *  a,
const void *  b 
)

References meta_stack_windows_cmp(), _MetaScreen::number, _MetaWindow::screen, and _MetaScreen::stack.

Referenced by meta_display_unmanage_windows_for_screen().

Here is the call graph for this function:

◆ meta_display_ungrab()

void meta_display_ungrab ( MetaDisplay *  display)

References meta_bug(), _MetaDisplay::server_grab_count, and _MetaDisplay::xdisplay.

Referenced by effects_draw_box_animation_timeout(), idle_calc_showing(), meta_display_open(), meta_effects_end_wireframe(), meta_screen_free(), meta_screen_manage_all_windows(), meta_window_ensure_frame(), meta_window_new(), and meta_window_new_with_attrs().

Here is the call graph for this function:

◆ meta_display_ungrab_focus_window_button()

void meta_display_ungrab_focus_window_button ( MetaDisplay *  display,
MetaWindow *  window 
)

References _MetaWindow::desc, FALSE, _MetaWindow::have_focus_click_grab, MAX_FOCUS_BUTTON, meta_change_button_grab(), and _MetaWindow::xwindow.

Referenced by meta_window_free(), meta_window_notify_focus(), and prefs_changed_callback().

Here is the call graph for this function:

◆ meta_display_ungrab_window_buttons()

void meta_display_ungrab_window_buttons ( MetaDisplay *  display,
Window  xwindow 
)

References FALSE, meta_change_button_grab(), NULL, and _MetaDisplay::window_grab_modifiers.

Referenced by meta_window_free(), and prefs_changed_callback().

Here is the call graph for this function:

◆ meta_display_unmanage_screen()

void meta_display_unmanage_screen ( MetaDisplay *  display,
MetaScreen *  screen,
guint32  timestamp 
)

References meta_display_close(), meta_screen_free(), _MetaDisplay::name, NULL, screen, and _MetaDisplay::screens.

Referenced by process_selection_clear().

Here is the call graph for this function:

◆ meta_display_unmanage_windows_for_screen()

void meta_display_unmanage_windows_for_screen ( MetaDisplay *  display,
MetaScreen *  screen,
guint32  timestamp 
)

References meta_display_list_windows(), meta_display_stack_cmp(), meta_window_free(), and NULL.

Referenced by meta_screen_free().

Here is the call graph for this function:

◆ meta_display_unregister_x_window()

void meta_display_unregister_x_window ( MetaDisplay *  display,
Window  xwindow 
)

References NULL, remove_pending_pings_for_window(), and _MetaDisplay::window_ids.

Referenced by meta_window_destroy_frame(), meta_window_free(), and reload_net_wm_user_time_window().

Here is the call graph for this function:

◆ meta_display_update_active_window_hint()

void meta_display_update_active_window_hint ( MetaDisplay *  display)

References FALSE, _MetaDisplay::focus_window, meta_error_trap_pop(), meta_error_trap_push(), NULL, screen, _MetaDisplay::screens, _MetaDisplay::xdisplay, and _MetaWindow::xwindow.

Referenced by meta_window_notify_focus().

Here is the call graph for this function:

◆ meta_display_xwindow_is_a_no_focus_window()

gboolean meta_display_xwindow_is_a_no_focus_window ( MetaDisplay *  display,
Window  xwindow 
)

◆ meta_event_detail_to_string()

const char * meta_event_detail_to_string ( int  d)

◆ meta_event_mode_to_string()

const char * meta_event_mode_to_string ( int  m)

◆ meta_get_display()

MetaDisplay * meta_get_display ( void  )

Accessor for the singleton MetaDisplay.

Returns
The only MetaDisplay there is. This can be NULL, but only during startup.

References the_display.

Referenced by meta_display_retheme_all(), meta_display_set_cursor_theme(), meta_finalize(), meta_invalidate_all_icons(), meta_invalidate_default_icons(), and meta_set_syncing().

◆ meta_grab_op_is_moving()

◆ meta_grab_op_is_resizing()

◆ meta_resize_gravity_from_grab_op()