Go to the source code of this file.
Data Structures | |
| struct | _MetaWindowPropHooks |
Defines | |
| #define | _GNU_SOURCE |
| #define | _SVID_SOURCE |
| #define | HOST_NAME_MAX 255 |
| #define | MAX_TITLE_LENGTH 512 |
| #define | FLAG_TOGGLED_ON(old, new, flag) |
| #define | FLAG_TOGGLED_OFF(old, new, flag) |
| #define | FLAG_CHANGED(old, new, flag) (FLAG_TOGGLED_ON(old,new,flag) || FLAG_TOGGLED_OFF(old,new,flag)) |
| #define | N_HOOKS 26 |
Typedefs | |
| typedef void(* | InitValueFunc )(MetaDisplay *display, Atom property, MetaPropValue *value) |
| typedef void(* | ReloadValueFunc )(MetaWindow *window, MetaPropValue *value) |
Functions | |
| static void | init_prop_value (MetaDisplay *display, Atom property, MetaPropValue *value) |
| static void | reload_prop_value (MetaWindow *window, MetaPropValue *value) |
| static MetaWindowPropHooks * | find_hooks (MetaDisplay *display, Atom property) |
| void | meta_window_reload_property (MetaWindow *window, Atom property) |
| Requests the current values of a single property for a given window from the server, and deals with it appropriately. | |
| void | meta_window_reload_properties (MetaWindow *window, const Atom *properties, int n_properties) |
| Requests the current values of a set of properties for a given window from the server, and deals with them appropriately. | |
| void | meta_window_reload_property_from_xwindow (MetaWindow *window, Window xwindow, Atom property) |
| Requests the current values of a single property for a given window from the server, and deals with it appropriately. | |
| void | meta_window_reload_properties_from_xwindow (MetaWindow *window, Window xwindow, const Atom *properties, int n_properties) |
| Requests the current values of a set of properties for a given window from the server, and deals with them appropriately. | |
| static void | init_wm_client_machine (MetaDisplay *display, Atom property, MetaPropValue *value) |
| static void | reload_wm_client_machine (MetaWindow *window, MetaPropValue *value) |
| static void | init_net_wm_pid (MetaDisplay *display, Atom property, MetaPropValue *value) |
| static void | reload_net_wm_pid (MetaWindow *window, MetaPropValue *value) |
| static void | init_net_wm_user_time (MetaDisplay *display, Atom property, MetaPropValue *value) |
| static void | reload_net_wm_user_time (MetaWindow *window, MetaPropValue *value) |
| static void | init_net_wm_user_time_window (MetaDisplay *display, Atom property, MetaPropValue *value) |
| static void | reload_net_wm_user_time_window (MetaWindow *window, MetaPropValue *value) |
| static gboolean | set_title_text (MetaWindow *window, gboolean previous_was_modified, const char *title, Atom atom, char **target) |
| Called by set_window_title and set_icon_title to set the value of *target to title. | |
| static void | set_window_title (MetaWindow *window, const char *title) |
| static void | init_net_wm_name (MetaDisplay *display, Atom property, MetaPropValue *value) |
| static void | reload_net_wm_name (MetaWindow *window, MetaPropValue *value) |
| static void | init_wm_name (MetaDisplay *display, Atom property, MetaPropValue *value) |
| static void | reload_wm_name (MetaWindow *window, MetaPropValue *value) |
| static void | set_icon_title (MetaWindow *window, const char *title) |
| static void | init_net_wm_icon_name (MetaDisplay *display, Atom property, MetaPropValue *value) |
| static void | reload_net_wm_icon_name (MetaWindow *window, MetaPropValue *value) |
| static void | init_wm_icon_name (MetaDisplay *display, Atom property, MetaPropValue *value) |
| static void | reload_wm_icon_name (MetaWindow *window, MetaPropValue *value) |
| static void | init_net_wm_state (MetaDisplay *display, Atom property, MetaPropValue *value) |
| static void | reload_net_wm_state (MetaWindow *window, MetaPropValue *value) |
| static void | init_mwm_hints (MetaDisplay *display, Atom property, MetaPropValue *value) |
| static void | reload_mwm_hints (MetaWindow *window, MetaPropValue *value) |
| static void | init_wm_class (MetaDisplay *display, Atom property, MetaPropValue *value) |
| static void | reload_wm_class (MetaWindow *window, MetaPropValue *value) |
| static void | init_net_wm_desktop (MetaDisplay *display, Atom property, MetaPropValue *value) |
| static void | reload_net_wm_desktop (MetaWindow *window, MetaPropValue *value) |
| static void | init_net_startup_id (MetaDisplay *display, Atom property, MetaPropValue *value) |
| static void | reload_net_startup_id (MetaWindow *window, MetaPropValue *value) |
| static void | init_update_counter (MetaDisplay *display, Atom property, MetaPropValue *value) |
| static void | reload_update_counter (MetaWindow *window, MetaPropValue *value) |
| static void | init_normal_hints (MetaDisplay *display, Atom property, MetaPropValue *value) |
| static void | spew_size_hints_differences (const XSizeHints *old, const XSizeHints *new) |
| void | meta_set_normal_hints (MetaWindow *window, XSizeHints *hints) |
| Sets the size hints for a window. | |
| static void | reload_normal_hints (MetaWindow *window, MetaPropValue *value) |
| static void | init_wm_protocols (MetaDisplay *display, Atom property, MetaPropValue *value) |
| static void | reload_wm_protocols (MetaWindow *window, MetaPropValue *value) |
| static void | init_wm_hints (MetaDisplay *display, Atom property, MetaPropValue *value) |
| static void | reload_wm_hints (MetaWindow *window, MetaPropValue *value) |
| static void | init_transient_for (MetaDisplay *display, Atom property, MetaPropValue *value) |
| static void | reload_transient_for (MetaWindow *window, MetaPropValue *value) |
| void | meta_display_init_window_prop_hooks (MetaDisplay *display) |
| Initialises the hooks used for the reload_propert* functions on a particular display, and stores a pointer to them in the display. | |
| void | meta_display_free_window_prop_hooks (MetaDisplay *display) |
| Frees the hooks used for the reload_propert* functions for a particular display. | |
A system which can inspect sets of properties of given windows and take appropriate action given their values.
Note that all the meta_window_reload_propert* functions require a round trip to the server.
Definition in file window-props.c.
| #define _GNU_SOURCE |
Definition at line 36 of file window-props.c.
| #define _SVID_SOURCE |
Definition at line 37 of file window-props.c.
| #define FLAG_CHANGED | ( | old, | |||
| new, | |||||
| flag | ) | (FLAG_TOGGLED_ON(old,new,flag) || FLAG_TOGGLED_OFF(old,new,flag)) |
| #define FLAG_TOGGLED_OFF | ( | old, | |||
| new, | |||||
| flag | ) |
Value:
(((old)->flags & (flag)) != 0 && \
((new)->flags & (flag)) == 0)
Definition at line 871 of file window-props.c.
| #define FLAG_TOGGLED_ON | ( | old, | |||
| new, | |||||
| flag | ) |
Value:
(((old)->flags & (flag)) == 0 && \
((new)->flags & (flag)) != 0)
Definition at line 867 of file window-props.c.
Referenced by spew_size_hints_differences().
| #define HOST_NAME_MAX 255 |
| #define MAX_TITLE_LENGTH 512 |
| #define N_HOOKS 26 |
Definition at line 1454 of file window-props.c.
| typedef void(* InitValueFunc)(MetaDisplay *display, Atom property, MetaPropValue *value) |
Definition at line 53 of file window-props.c.
| typedef void(* ReloadValueFunc)(MetaWindow *window, MetaPropValue *value) |
Definition at line 56 of file window-props.c.
| static MetaWindowPropHooks * find_hooks | ( | MetaDisplay * | display, | |
| Atom | property | |||
| ) | [static] |
Definition at line 1615 of file window-props.c.
References N_HOOKS, NULL, _MetaDisplay::prop_hooks, and _MetaWindowPropHooks::property.
| static void init_mwm_hints | ( | MetaDisplay * | display, | |
| Atom | property, | |||
| MetaPropValue * | value | |||
| ) | [static] |
Definition at line 594 of file window-props.c.
References MetaPropValue::atom, META_PROP_VALUE_MOTIF_HINTS, and MetaPropValue::type.
Referenced by meta_display_init_window_prop_hooks().
| static void init_net_startup_id | ( | MetaDisplay * | display, | |
| Atom | property, | |||
| MetaPropValue * | value | |||
| ) | [static] |
Definition at line 786 of file window-props.c.
References MetaPropValue::atom, META_PROP_VALUE_UTF8, and MetaPropValue::type.
| static void init_net_wm_desktop | ( | MetaDisplay * | display, | |
| Atom | property, | |||
| MetaPropValue * | value | |||
| ) | [static] |
Definition at line 763 of file window-props.c.
References MetaPropValue::atom, META_PROP_VALUE_CARDINAL, and MetaPropValue::type.
Referenced by meta_display_init_window_prop_hooks().
| static void init_net_wm_icon_name | ( | MetaDisplay * | display, | |
| Atom | property, | |||
| MetaPropValue * | value | |||
| ) | [static] |
Definition at line 465 of file window-props.c.
References MetaPropValue::atom, META_PROP_VALUE_UTF8, and MetaPropValue::type.
Referenced by meta_display_init_window_prop_hooks().
| static void init_net_wm_name | ( | MetaDisplay * | display, | |
| Atom | property, | |||
| MetaPropValue * | value | |||
| ) | [static] |
Definition at line 390 of file window-props.c.
References MetaPropValue::atom, META_PROP_VALUE_UTF8, and MetaPropValue::type.
Referenced by meta_display_init_window_prop_hooks().
| static void init_net_wm_pid | ( | MetaDisplay * | display, | |
| Atom | property, | |||
| MetaPropValue * | value | |||
| ) | [static] |
Definition at line 189 of file window-props.c.
References MetaPropValue::atom, META_PROP_VALUE_CARDINAL, and MetaPropValue::type.
Referenced by meta_display_init_window_prop_hooks().
| static void init_net_wm_state | ( | MetaDisplay * | display, | |
| Atom | property, | |||
| MetaPropValue * | value | |||
| ) | [static] |
Definition at line 527 of file window-props.c.
References MetaPropValue::atom, META_PROP_VALUE_ATOM_LIST, and MetaPropValue::type.
Referenced by meta_display_init_window_prop_hooks().
| static void init_net_wm_user_time | ( | MetaDisplay * | display, | |
| Atom | property, | |||
| MetaPropValue * | value | |||
| ) | [static] |
Definition at line 218 of file window-props.c.
References MetaPropValue::atom, META_PROP_VALUE_CARDINAL, and MetaPropValue::type.
Referenced by meta_display_init_window_prop_hooks().
| static void init_net_wm_user_time_window | ( | MetaDisplay * | display, | |
| Atom | property, | |||
| MetaPropValue * | value | |||
| ) | [static] |
Definition at line 238 of file window-props.c.
References MetaPropValue::atom, META_PROP_VALUE_WINDOW, and MetaPropValue::type.
Referenced by meta_display_init_window_prop_hooks().
| static void init_normal_hints | ( | MetaDisplay * | display, | |
| Atom | property, | |||
| MetaPropValue * | value | |||
| ) | [static] |
Definition at line 858 of file window-props.c.
References MetaPropValue::atom, META_PROP_VALUE_SIZE_HINTS, and MetaPropValue::type.
Referenced by meta_display_init_window_prop_hooks().
| static void init_prop_value | ( | MetaDisplay * | display, | |
| Atom | property, | |||
| MetaPropValue * | value | |||
| ) | [static] |
Definition at line 140 of file window-props.c.
References MetaPropValue::atom, find_hooks(), _MetaWindowPropHooks::init_func, META_PROP_VALUE_INVALID, NULL, and MetaPropValue::type.
| static void init_transient_for | ( | MetaDisplay * | display, | |
| Atom | property, | |||
| MetaPropValue * | value | |||
| ) | [static] |
Definition at line 1398 of file window-props.c.
References MetaPropValue::atom, META_PROP_VALUE_WINDOW, and MetaPropValue::type.
Referenced by meta_display_init_window_prop_hooks().
| static void init_update_counter | ( | MetaDisplay * | display, | |
| Atom | property, | |||
| MetaPropValue * | value | |||
| ) | [static] |
Definition at line 832 of file window-props.c.
References MetaPropValue::atom, META_PROP_VALUE_SYNC_COUNTER, and MetaPropValue::type.
Referenced by meta_display_init_window_prop_hooks().
| static void init_wm_class | ( | MetaDisplay * | display, | |
| Atom | property, | |||
| MetaPropValue * | value | |||
| ) | [static] |
Definition at line 727 of file window-props.c.
References MetaPropValue::atom, META_PROP_VALUE_CLASS_HINT, and MetaPropValue::type.
Referenced by meta_display_init_window_prop_hooks().
| static void init_wm_client_machine | ( | MetaDisplay * | display, | |
| Atom | property, | |||
| MetaPropValue * | value | |||
| ) | [static] |
Definition at line 166 of file window-props.c.
References MetaPropValue::atom, META_PROP_VALUE_STRING, and MetaPropValue::type.
| static void init_wm_hints | ( | MetaDisplay * | display, | |
| Atom | property, | |||
| MetaPropValue * | value | |||
| ) | [static] |
Definition at line 1333 of file window-props.c.
References MetaPropValue::atom, META_PROP_VALUE_WM_HINTS, and MetaPropValue::type.
Referenced by meta_display_init_window_prop_hooks().
| static void init_wm_icon_name | ( | MetaDisplay * | display, | |
| Atom | property, | |||
| MetaPropValue * | value | |||
| ) | [static] |
Definition at line 494 of file window-props.c.
References MetaPropValue::atom, META_PROP_VALUE_TEXT_PROPERTY, and MetaPropValue::type.
Referenced by meta_display_init_window_prop_hooks().
| static void init_wm_name | ( | MetaDisplay * | display, | |
| Atom | property, | |||
| MetaPropValue * | value | |||
| ) | [static] |
Definition at line 419 of file window-props.c.
References MetaPropValue::atom, META_PROP_VALUE_TEXT_PROPERTY, and MetaPropValue::type.
Referenced by meta_display_init_window_prop_hooks().
| static void init_wm_protocols | ( | MetaDisplay * | display, | |
| Atom | property, | |||
| MetaPropValue * | value | |||
| ) | [static] |
Definition at line 1291 of file window-props.c.
References MetaPropValue::atom, META_PROP_VALUE_ATOM_LIST, and MetaPropValue::type.
Referenced by meta_display_init_window_prop_hooks().
| void meta_display_free_window_prop_hooks | ( | MetaDisplay * | display | ) |
Frees the hooks used for the reload_propert* functions for a particular display.
| display | The display. |
Definition at line 1606 of file window-props.c.
References NULL, and _MetaDisplay::prop_hooks.
Referenced by meta_display_close().
| void meta_display_init_window_prop_hooks | ( | MetaDisplay * | display | ) |
Initialises the hooks used for the reload_propert* functions on a particular display, and stores a pointer to them in the display.
| display | The display. |
Definition at line 1457 of file window-props.c.
References _MetaWindowPropHooks::init_func, init_mwm_hints(), init_net_startup_id(), init_net_wm_desktop(), init_net_wm_icon_name(), init_net_wm_name(), init_net_wm_pid(), init_net_wm_state(), init_net_wm_user_time(), init_net_wm_user_time_window(), init_normal_hints(), init_transient_for(), init_update_counter(), init_wm_class(), init_wm_client_machine(), init_wm_hints(), init_wm_icon_name(), init_wm_name(), init_wm_protocols(), N_HOOKS, NULL, _MetaDisplay::prop_hooks, _MetaWindowPropHooks::property, _MetaWindowPropHooks::reload_func, reload_mwm_hints(), reload_net_startup_id(), reload_net_wm_desktop(), reload_net_wm_icon_name(), reload_net_wm_name(), reload_net_wm_pid(), reload_net_wm_state(), reload_net_wm_user_time(), reload_net_wm_user_time_window(), reload_normal_hints(), reload_transient_for(), reload_update_counter(), reload_wm_class(), reload_wm_client_machine(), reload_wm_hints(), reload_wm_icon_name(), reload_wm_name(), and reload_wm_protocols().
| void meta_set_normal_hints | ( | MetaWindow * | window, | |
| XSizeHints * | hints | |||
| ) |
Sets the size hints for a window.
This happens when a WM_NORMAL_HINTS property is set on a window, but it is public because the size hints are set to defaults when a window is created. See http://tronche.com/gui/x/icccm/sec-4.html#WM_NORMAL_HINTS for the X details.
| window | The window to set the size hints on. | |
| hints | Either some X size hints, or NULL for default. |
Definition at line 928 of file window-props.c.
References _MetaWindow::desc, META_DEBUG_GEOMETRY, and _MetaWindow::size_hints.
Referenced by meta_window_new_with_attrs(), and reload_normal_hints().
| void meta_window_reload_properties | ( | MetaWindow * | window, | |
| const Atom * | properties, | |||
| int | n_properties | |||
| ) |
Requests the current values of a set of properties for a given window from the server, and deals with them appropriately.
Does not return them to the caller (they've been dealt with!)
| window | The window. | |
| properties | A pointer to a list of X atoms, "n_properties" long. | |
| n_properties | The length of the properties list. |
Definition at line 83 of file window-props.c.
References meta_window_reload_properties_from_xwindow(), and _MetaWindow::xwindow.
Referenced by meta_window_new_with_attrs(), and meta_window_reload_property().
| void meta_window_reload_properties_from_xwindow | ( | MetaWindow * | window, | |
| Window | xwindow, | |||
| const Atom * | properties, | |||
| int | n_properties | |||
| ) |
Requests the current values of a set of properties for a given window from the server, and deals with them appropriately.
Does not return them to the caller (they've been dealt with!)
| window | A window on the same display as the one we're investigating (only used to find the display) | |
| xwindow | The X handle for the window. | |
| properties | A pointer to a list of X atoms, "n_properties" long. | |
| n_properties | The length of the properties list. |
Definition at line 102 of file window-props.c.
References _MetaWindow::display, init_prop_value(), meta_prop_free_values(), meta_prop_get_values(), NULL, and reload_prop_value().
Referenced by meta_window_reload_properties(), and meta_window_reload_property_from_xwindow().
| void meta_window_reload_property | ( | MetaWindow * | window, | |
| Atom | property | |||
| ) |
Requests the current values of a single property for a given window from the server, and deals with it appropriately.
Does not return it to the caller (it's been dealt with!)
| window | The window. | |
| property | A single X atom. |
Definition at line 76 of file window-props.c.
References meta_window_reload_properties().
Referenced by process_property_notify().
| void meta_window_reload_property_from_xwindow | ( | MetaWindow * | window, | |
| Window | xwindow, | |||
| Atom | property | |||
| ) |
Requests the current values of a single property for a given window from the server, and deals with it appropriately.
Does not return it to the caller (it's been dealt with!)
| window | A window on the same display as the one we're investigating (only used to find the display) | |
| xwindow | The X handle for the window. | |
| property | A single X atom. |
Definition at line 94 of file window-props.c.
References meta_window_reload_properties_from_xwindow().
Referenced by process_property_notify(), and reload_net_wm_user_time_window().
| static void reload_mwm_hints | ( | MetaWindow * | window, | |
| MetaPropValue * | value | |||
| ) | [static] |
Definition at line 603 of file window-props.c.
References _MetaWindow::constructing, _MetaWindow::decorated, MotifWmHints::decorations, _MetaWindow::desc, FALSE, MotifWmHints::flags, MotifWmHints::functions, META_PROP_VALUE_INVALID, META_QUEUE_CALC_SHOWING, META_QUEUE_MOVE_RESIZE, meta_window_destroy_frame(), meta_window_ensure_frame(), meta_window_queue(), meta_window_recalc_features(), MetaPropValue::motif_hints, _MetaWindow::mwm_border_only, MWM_DECOR_BORDER, _MetaWindow::mwm_decorated, MWM_FUNC_ALL, MWM_FUNC_CLOSE, MWM_FUNC_MAXIMIZE, MWM_FUNC_MINIMIZE, MWM_FUNC_MOVE, MWM_FUNC_RESIZE, _MetaWindow::mwm_has_close_func, _MetaWindow::mwm_has_maximize_func, _MetaWindow::mwm_has_minimize_func, _MetaWindow::mwm_has_move_func, _MetaWindow::mwm_has_resize_func, MWM_HINTS_DECORATIONS, MWM_HINTS_FUNCTIONS, TRUE, MetaPropValue::type, and MetaPropValue::v.
Referenced by meta_display_init_window_prop_hooks().
| static void reload_net_startup_id | ( | MetaWindow * | window, | |
| MetaPropValue * | value | |||
| ) | [static] |
Definition at line 795 of file window-props.c.
References _MetaWindow::constructing, _MetaWindow::desc, _MetaWindow::initial_timestamp, _MetaWindow::initial_timestamp_set, _MetaWindow::initial_workspace, _MetaWindow::initial_workspace_set, META_PROP_VALUE_INVALID, meta_screen_apply_startup_properties(), meta_screen_get_workspace_by_index(), meta_window_activate_with_workspace(), _MetaWindow::net_wm_user_time, NULL, _MetaWindow::screen, _MetaWindow::startup_id, MetaPropValue::str, MetaPropValue::type, and MetaPropValue::v.
| static void reload_net_wm_desktop | ( | MetaWindow * | window, | |
| MetaPropValue * | value | |||
| ) | [static] |
Definition at line 772 of file window-props.c.
References MetaPropValue::cardinal, _MetaWindow::desc, _MetaWindow::initial_workspace, _MetaWindow::initial_workspace_set, META_DEBUG_PLACEMENT, META_PROP_VALUE_INVALID, TRUE, MetaPropValue::type, and MetaPropValue::v.
Referenced by meta_display_init_window_prop_hooks().
| static void reload_net_wm_icon_name | ( | MetaWindow * | window, | |
| MetaPropValue * | value | |||
| ) | [static] |
Definition at line 474 of file window-props.c.
References _MetaWindow::desc, FALSE, META_PROP_VALUE_INVALID, NULL, set_icon_title(), MetaPropValue::str, _MetaWindow::title, TRUE, MetaPropValue::type, _MetaWindow::using_net_wm_icon_name, and MetaPropValue::v.
Referenced by meta_display_init_window_prop_hooks().
| static void reload_net_wm_name | ( | MetaWindow * | window, | |
| MetaPropValue * | value | |||
| ) | [static] |
Definition at line 399 of file window-props.c.
References _MetaWindow::desc, FALSE, META_PROP_VALUE_INVALID, NULL, set_window_title(), MetaPropValue::str, _MetaWindow::title, TRUE, MetaPropValue::type, _MetaWindow::using_net_wm_name, and MetaPropValue::v.
Referenced by meta_display_init_window_prop_hooks().
| static void reload_net_wm_pid | ( | MetaWindow * | window, | |
| MetaPropValue * | value | |||
| ) | [static] |
Definition at line 198 of file window-props.c.
References _, MetaPropValue::cardinal, META_PROP_VALUE_INVALID, meta_warning(), _MetaWindow::net_wm_pid, MetaPropValue::type, and MetaPropValue::v.
Referenced by meta_display_init_window_prop_hooks().
| static void reload_net_wm_state | ( | MetaWindow * | window, | |
| MetaPropValue * | value | |||
| ) | [static] |
Definition at line 536 of file window-props.c.
References MetaPropValue::atom_list, _MetaWindow::desc, _MetaWindow::display, FALSE, _MetaWindow::fullscreen, _MetaWindow::maximize_horizontally_after_placement, _MetaWindow::maximize_vertically_after_placement, _MetaWindow::maximized_horizontally, _MetaWindow::maximized_vertically, META_PROP_VALUE_INVALID, meta_window_recalc_window_type(), _MetaWindow::minimize_after_placement, _MetaWindow::shaded, TRUE, MetaPropValue::type, MetaPropValue::v, _MetaWindow::wm_state_above, _MetaWindow::wm_state_below, _MetaWindow::wm_state_demands_attention, _MetaWindow::wm_state_modal, _MetaWindow::wm_state_skip_pager, and _MetaWindow::wm_state_skip_taskbar.
Referenced by meta_display_init_window_prop_hooks().
| static void reload_net_wm_user_time | ( | MetaWindow * | window, | |
| MetaPropValue * | value | |||
| ) | [static] |
Definition at line 227 of file window-props.c.
References MetaPropValue::cardinal, META_PROP_VALUE_INVALID, meta_window_set_user_time(), MetaPropValue::type, and MetaPropValue::v.
Referenced by meta_display_init_window_prop_hooks().
| static void reload_net_wm_user_time_window | ( | MetaWindow * | window, | |
| MetaPropValue * | value | |||
| ) | [static] |
Definition at line 247 of file window-props.c.
References _MetaWindow::display, meta_display_register_x_window(), meta_display_unregister_x_window(), META_PROP_VALUE_INVALID, meta_window_reload_property_from_xwindow(), MetaPropValue::type, _MetaWindow::user_time_window, MetaPropValue::v, _MetaDisplay::xdisplay, and MetaPropValue::xwindow.
Referenced by meta_display_init_window_prop_hooks().
| static void reload_normal_hints | ( | MetaWindow * | window, | |
| MetaPropValue * | value | |||
| ) | [static] |
Definition at line 1270 of file window-props.c.
References _MetaWindow::desc, META_DEBUG_GEOMETRY, META_PROP_VALUE_INVALID, meta_set_normal_hints(), meta_window_recalc_features(), MetaPropValue::size_hints, _MetaWindow::size_hints, spew_size_hints_differences(), MetaPropValue::type, and MetaPropValue::v.
Referenced by meta_display_init_window_prop_hooks().
| static void reload_prop_value | ( | MetaWindow * | window, | |
| MetaPropValue * | value | |||
| ) | [static] |
Definition at line 155 of file window-props.c.
References MetaPropValue::atom, _MetaWindow::display, find_hooks(), NULL, and _MetaWindowPropHooks::reload_func.
| static void reload_transient_for | ( | MetaWindow * | window, | |
| MetaPropValue * | value | |||
| ) | [static] |
Definition at line 1407 of file window-props.c.
References _, _MetaWindow::constructing, _MetaWindow::desc, _MetaWindow::display, meta_display_lookup_x_window(), META_PROP_VALUE_INVALID, META_QUEUE_MOVE_RESIZE, meta_stack_update_transient(), meta_warning(), meta_window_group_leader_changed(), meta_window_queue(), meta_window_recalc_window_type(), NULL, _MetaWindow::screen, _MetaScreen::stack, _MetaWindow::transient_parent_is_root_window, MetaPropValue::type, MetaPropValue::v, _MetaWindow::xgroup_leader, _MetaScreen::xroot, _MetaWindow::xtransient_for, and MetaPropValue::xwindow.
Referenced by meta_display_init_window_prop_hooks().
| static void reload_update_counter | ( | MetaWindow * | window, | |
| MetaPropValue * | value | |||
| ) | [static] |
Definition at line 841 of file window-props.c.
References META_PROP_VALUE_INVALID, _MetaWindow::sync_request_counter, MetaPropValue::type, MetaPropValue::v, and MetaPropValue::xcounter.
Referenced by meta_display_init_window_prop_hooks().
| static void reload_wm_class | ( | MetaWindow * | window, | |
| MetaPropValue * | value | |||
| ) | [static] |
Definition at line 736 of file window-props.c.
References MetaPropValue::class_hint, _MetaWindow::desc, META_PROP_VALUE_INVALID, NULL, _MetaWindow::res_class, _MetaWindow::res_name, MetaPropValue::type, and MetaPropValue::v.
Referenced by meta_display_init_window_prop_hooks().
| static void reload_wm_client_machine | ( | MetaWindow * | window, | |
| MetaPropValue * | value | |||
| ) | [static] |
Definition at line 175 of file window-props.c.
References META_PROP_VALUE_INVALID, NULL, MetaPropValue::str, MetaPropValue::type, MetaPropValue::v, and _MetaWindow::wm_client_machine.
| static void reload_wm_hints | ( | MetaWindow * | window, | |
| MetaPropValue * | value | |||
| ) | [static] |
Definition at line 1342 of file window-props.c.
References _MetaWindow::desc, _MetaWindow::display, FALSE, _MetaWindow::icon_cache, _MetaWindow::initially_iconic, _MetaWindow::input, meta_icon_cache_property_changed(), META_PROP_VALUE_INVALID, META_QUEUE_MOVE_RESIZE, META_QUEUE_UPDATE_ICON, meta_window_group_leader_changed(), meta_window_queue(), TRUE, MetaPropValue::type, MetaPropValue::v, MetaPropValue::wm_hints, _MetaWindow::wm_hints_mask, _MetaWindow::wm_hints_pixmap, and _MetaWindow::xgroup_leader.
Referenced by meta_display_init_window_prop_hooks().
| static void reload_wm_icon_name | ( | MetaWindow * | window, | |
| MetaPropValue * | value | |||
| ) | [static] |
Definition at line 503 of file window-props.c.
References _MetaWindow::desc, META_PROP_VALUE_INVALID, NULL, set_icon_title(), MetaPropValue::str, _MetaWindow::title, MetaPropValue::type, _MetaWindow::using_net_wm_icon_name, and MetaPropValue::v.
Referenced by meta_display_init_window_prop_hooks().
| static void reload_wm_name | ( | MetaWindow * | window, | |
| MetaPropValue * | value | |||
| ) | [static] |
Definition at line 428 of file window-props.c.
References _MetaWindow::desc, META_PROP_VALUE_INVALID, NULL, set_window_title(), MetaPropValue::str, _MetaWindow::title, MetaPropValue::type, _MetaWindow::using_net_wm_name, and MetaPropValue::v.
Referenced by meta_display_init_window_prop_hooks().
| static void reload_wm_protocols | ( | MetaWindow * | window, | |
| MetaPropValue * | value | |||
| ) | [static] |
Definition at line 1300 of file window-props.c.
References MetaPropValue::atom_list, _MetaWindow::delete_window, _MetaWindow::desc, _MetaWindow::display, FALSE, META_PROP_VALUE_INVALID, _MetaWindow::net_wm_ping, _MetaWindow::startup_id, _MetaWindow::take_focus, TRUE, MetaPropValue::type, and MetaPropValue::v.
Referenced by meta_display_init_window_prop_hooks().
| static void set_icon_title | ( | MetaWindow * | window, | |
| const char * | title | |||
| ) | [static] |
Definition at line 452 of file window-props.c.
References _MetaWindow::display, _MetaWindow::icon_name, set_title_text(), and _MetaWindow::using_net_wm_visible_icon_name.
Referenced by reload_net_wm_icon_name(), and reload_wm_icon_name().
| static gboolean set_title_text | ( | MetaWindow * | window, | |
| gboolean | previous_was_modified, | |||
| const char * | title, | |||
| Atom | atom, | |||
| char ** | target | |||
| ) | [static] |
Called by set_window_title and set_icon_title to set the value of *target to title.
It required and atom is set, it will update the appropriate property.
Returns TRUE if a new title was set.
Definition at line 311 of file window-props.c.
References _, _MetaWindow::display, FALSE, HOST_NAME_MAX, MAX_TITLE_LENGTH, meta_error_trap_pop(), meta_error_trap_push(), meta_g_utf8_strndup(), meta_prop_set_utf8_string_hint(), TRUE, _MetaWindow::wm_client_machine, _MetaDisplay::xdisplay, and _MetaWindow::xwindow.
Referenced by set_icon_title(), and set_window_title().
| static void set_window_title | ( | MetaWindow * | window, | |
| const char * | title | |||
| ) | [static] |
Definition at line 364 of file window-props.c.
References _MetaWindow::desc, _MetaWindow::display, _MetaWindow::frame, meta_ui_set_frame_title(), _MetaWindow::screen, set_title_text(), _MetaWindow::title, _MetaScreen::ui, _MetaWindow::using_net_wm_visible_name, _MetaFrame::xwindow, and _MetaWindow::xwindow.
Referenced by reload_net_wm_name(), and reload_wm_name().
| static void spew_size_hints_differences | ( | const XSizeHints * | old, | |
| const XSizeHints * | new | |||
| ) | [static] |
Definition at line 879 of file window-props.c.
References FLAG_CHANGED, FLAG_TOGGLED_ON, and META_DEBUG_GEOMETRY.
Referenced by reload_normal_hints().
1.5.5