display-private.h File Reference

Go to the source code of this file.

Data Structures

struct  _MetaDisplay

Defines

#define _NET_WM_STATE_REMOVE   0
#define _NET_WM_STATE_ADD   1
#define _NET_WM_STATE_TOGGLE   2
#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 _MetaWindowPropHooks MetaWindowPropHooks
typedef struct _MetaGroupPropHooks MetaGroupPropHooks
typedef struct
MetaEdgeResistanceData 
MetaEdgeResistanceData
typedef void(* MetaWindowPingFunc )(MetaDisplay *display, Window xwindow, guint32 timestamp, gpointer user_data)

Enumerations

enum  MetaTabList { META_TAB_LIST_NORMAL, META_TAB_LIST_DOCKS, META_TAB_LIST_GROUP }
enum  MetaTabShowType { META_TAB_SHOW_ICON, META_TAB_SHOW_INSTANTLY }

Functions

gboolean meta_display_open (void)
void meta_display_close (MetaDisplay *display, guint32 timestamp)
MetaScreenmeta_display_screen_for_x_screen (MetaDisplay *display, Screen *screen)
MetaScreenmeta_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)
MetaWindowmeta_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)
MetaDisplaymeta_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.
MetaDisplaymeta_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_compute_resistance_and_snapping_edges (MetaDisplay *display)
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)
MetaWindowmeta_display_get_tab_next (MetaDisplay *display, MetaTabList type, MetaScreen *screen, MetaWorkspace *workspace, MetaWindow *window, gboolean backward)
MetaWindowmeta_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)


Define Documentation

#define _NET_WM_STATE_ADD   1

Definition at line 66 of file display-private.h.

Referenced by meta_window_client_message().

#define _NET_WM_STATE_REMOVE   0

Definition at line 65 of file display-private.h.

#define _NET_WM_STATE_TOGGLE   2

Definition at line 67 of file display-private.h.

Referenced by meta_window_client_message().

#define item (  )     Atom atom_##x;

Definition at line 87 of file display-private.h.

#define META_DISPLAY_HAS_COMPOSITE ( display   )     FALSE

Definition at line 459 of file display-private.h.

Referenced by enable_compositor().

#define META_DISPLAY_HAS_DAMAGE ( display   )     FALSE

Definition at line 460 of file display-private.h.

Referenced by enable_compositor().

#define META_DISPLAY_HAS_RENDER ( display   )     FALSE

Definition at line 449 of file display-private.h.

Referenced by enable_compositor().

#define META_DISPLAY_HAS_SHAPE ( display   )     FALSE

#define META_DISPLAY_HAS_XFIXES ( display   )     FALSE

Definition at line 461 of file display-private.h.

Referenced by enable_compositor().

#define META_DISPLAY_HAS_XSYNC ( display   )     FALSE

Definition at line 437 of file display-private.h.

Referenced by event_callback(), and meta_spew_event().

#define N_IGNORED_SERIALS   4

Definition at line 74 of file display-private.h.

Referenced by add_ignored_serial(), reset_ignores(), and serial_is_ignored().

#define XSERVER_TIME_IS_BEFORE ( time1,
time2   ) 

#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 ))        \
  )

Definition at line 314 of file display-private.h.


Typedef Documentation

Definition at line 57 of file display-private.h.

Definition at line 55 of file display-private.h.

Definition at line 49 of file display-private.h.

typedef struct _MetaStack MetaStack

Definition at line 50 of file display-private.h.

typedef struct _MetaUISlave MetaUISlave

Definition at line 51 of file display-private.h.

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

Definition at line 59 of file display-private.h.

Definition at line 54 of file display-private.h.

typedef struct _MetaWorkspace MetaWorkspace

Definition at line 52 of file display-private.h.


Enumeration Type Documentation

Enumerator:
META_TAB_LIST_NORMAL 
META_TAB_LIST_DOCKS 
META_TAB_LIST_GROUP 

Definition at line 433 of file display-private.h.

Enumerator:
META_TAB_SHOW_ICON 
META_TAB_SHOW_INSTANTLY 

Definition at line 440 of file display-private.h.


Function Documentation

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 
)

Definition at line 3236 of file display.c.

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_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_compute_resistance_and_snapping_edges(), meta_display_set_grab_op_cursor(), meta_error_trap_pop_with_return(), meta_error_trap_push_with_return(), 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_TABBING_DOCK, META_GRAB_OP_KEYBOARD_TABBING_GROUP, META_GRAB_OP_KEYBOARD_TABBING_NORMAL, META_GRAB_OP_KEYBOARD_WORKSPACE_SWITCHING, META_GRAB_OP_NONE, meta_prefs_get_gnome_accessibility(), meta_prefs_get_raise_on_click(), meta_prefs_get_reduced_resources(), 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_SHOW_ICON, META_TAB_SHOW_INSTANTLY, meta_warning(), meta_window_begin_wireframe(), meta_window_calc_showing(), meta_window_get_client_root_coords(), meta_window_grab_all_keys(), meta_window_raise(), meta_window_refresh_resize_popup(), NULL, _MetaWindow::rect, _MetaScreen::stack, _MetaWindow::sync_request_counter, _MetaWindow::sync_request_serial, _MetaWindow::sync_request_time, TRUE, _MetaDisplay::xdisplay, _MetaScreen::xroot, _MetaWindow::xwindow, and _MetaFrame::xwindow.

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

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

void meta_display_cleanup_edges ( MetaDisplay display  ) 

void meta_display_close ( MetaDisplay display,
guint32  timestamp 
)

void meta_display_compute_resistance_and_snapping_edges ( MetaDisplay display  ) 

Cursor meta_display_create_x_cursor ( MetaDisplay display,
MetaCursor  cursor 
)

void meta_display_decrement_focus_sentinel ( MetaDisplay display  ) 

Definition at line 4962 of file display.c.

References _MetaDisplay::sentinel_counter.

Referenced by event_callback().

void meta_display_devirtualize_modifiers ( MetaDisplay display,
MetaVirtualModifier  modifiers,
unsigned int *  mask 
)

void meta_display_end_grab_op ( MetaDisplay display,
guint32  timestamp 
)

Definition at line 3513 of file display.c.

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_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_SWITCHING, META_GRAB_OP_NONE, meta_prefs_get_raise_on_click(), meta_resize_gravity_from_grab_op(), meta_screen_ungrab_all_keys(), 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, 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(), meta_core_end_grab_op(), meta_display_process_key_event(), meta_window_free(), meta_window_handle_mouse_grab_op_event(), process_tab_grab(), and process_workspace_switch_grab().

gboolean meta_display_focus_sentinel_clear ( MetaDisplay display  ) 

Definition at line 4971 of file display.c.

References _MetaDisplay::sentinel_counter.

Referenced by event_callback().

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

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:
xdisplay An X display
Returns:
The singleton X display, or NULL if "xdisplay" isn't the one we're managing.

Definition at line 1039 of file display.c.

References meta_warning(), NULL, 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_screen_for_x_screen(), sn_error_trap_pop(), sn_error_trap_push(), x_error_handler(), and x_io_error_handler().

guint32 meta_display_get_current_time ( MetaDisplay display  ) 

guint32 meta_display_get_current_time_roundtrip ( MetaDisplay display  ) 

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

Definition at line 4500 of file display.c.

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

Referenced by do_choose_window().

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 
)

void meta_display_grab ( MetaDisplay display  ) 

void meta_display_grab_focus_window_button ( MetaDisplay display,
MetaWindow window 
)

void meta_display_grab_window_buttons ( MetaDisplay display,
Window  xwindow 
)

void meta_display_increment_event_serial ( MetaDisplay display  ) 

Definition at line 3875 of file display.c.

References _MetaDisplay::leader_window, and _MetaDisplay::xdisplay.

Referenced by meta_core_increment_event_serial().

void meta_display_increment_focus_sentinel ( MetaDisplay display  ) 

GSList* meta_display_list_windows ( MetaDisplay display  ) 

MetaWindow* meta_display_lookup_x_window ( MetaDisplay display,
Window  xwindow 
)

gboolean meta_display_open ( void   ) 

Referenced by main().

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().

void meta_display_queue_autoraise_callback ( MetaDisplay display,
MetaWindow window 
)

void meta_display_queue_retheme_all_windows ( MetaDisplay display  ) 

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

void meta_display_remove_autoraise_callback ( MetaDisplay display  ) 

void meta_display_retheme_all ( void   ) 

MetaScreen* meta_display_screen_for_x_screen ( MetaDisplay display,
Screen *  screen 
)

MetaScreen* meta_display_screen_for_xwindow ( MetaDisplay display,
Window  xindow 
)

void meta_display_set_cursor_theme ( const char *  theme,
int  size 
)

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

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

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

void meta_display_ungrab ( MetaDisplay display  ) 

void meta_display_ungrab_focus_window_button ( MetaDisplay display,
MetaWindow window 
)

void meta_display_ungrab_window_buttons ( MetaDisplay display,
Window  xwindow 
)

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

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

Definition at line 4803 of file display.c.

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

Referenced by meta_screen_free().

void meta_display_unregister_x_window ( MetaDisplay display,
Window  xwindow 
)

void meta_display_update_active_window_hint ( MetaDisplay display  ) 

gboolean meta_display_xwindow_is_a_no_focus_window ( MetaDisplay display,
Window  xwindow 
)

const char* meta_event_detail_to_string ( int  d  ) 

Definition at line 2550 of file display.c.

Referenced by event_callback(), meta_spew_event(), and meta_window_notify_focus().

const char* meta_event_mode_to_string ( int  m  ) 

Definition at line 2589 of file display.c.

Referenced by event_callback(), meta_spew_event(), and meta_window_notify_focus().

MetaDisplay* meta_get_display ( void   ) 

Accessor for the singleton MetaDisplay.

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

Definition at line 1057 of file display.c.

Referenced by main(), meta_display_retheme_all(), meta_display_set_cursor_theme(), meta_invalidate_default_icons(), meta_set_syncing(), release_window_with_fd(), save_state(), search_and_destroy_window(), and warn_about_lame_clients_and_finish_interact().

gboolean meta_grab_op_is_moving ( MetaGrabOp  op  ) 

gboolean meta_grab_op_is_resizing ( MetaGrabOp  op  ) 

int meta_resize_gravity_from_grab_op ( MetaGrabOp  op  ) 


Generated on Sat Aug 23 22:04:20 2008 for metacity by  doxygen 1.5.5