marco 1.29.1
Window manager
Loading...
Searching...
No Matches
util.h File Reference
View source
#include <glib.h>
#include <glib-object.h>
Include dependency graph for util.h:
This graph shows which files directly or indirectly include this file:

Enumerations

enum  MetaDebugTopic {
  META_DEBUG_FOCUS = 1 << 0 , META_DEBUG_WORKAREA = 1 << 1 , META_DEBUG_STACK = 1 << 2 , META_DEBUG_THEMES = 1 << 3 ,
  META_DEBUG_SM = 1 << 4 , META_DEBUG_EVENTS = 1 << 5 , META_DEBUG_WINDOW_STATE = 1 << 6 , META_DEBUG_WINDOW_OPS = 1 << 7 ,
  META_DEBUG_GEOMETRY = 1 << 8 , META_DEBUG_PLACEMENT = 1 << 9 , META_DEBUG_PING = 1 << 10 , META_DEBUG_XINERAMA = 1 << 11 ,
  META_DEBUG_KEYBINDINGS = 1 << 12 , META_DEBUG_SYNC = 1 << 13 , META_DEBUG_ERRORS = 1 << 14 , META_DEBUG_STARTUP = 1 << 15 ,
  META_DEBUG_PREFS = 1 << 16 , META_DEBUG_GROUPS = 1 << 17 , META_DEBUG_RESIZING = 1 << 18 , META_DEBUG_SHAPES = 1 << 19 ,
  META_DEBUG_COMPOSITOR = 1 << 20 , META_DEBUG_EDGE_RESISTANCE = 1 << 21
}
 

Functions

gboolean meta_is_verbose (void)
 
void meta_set_verbose (gboolean setting)
 
gboolean meta_is_debugging (void)
 
void meta_set_debugging (gboolean setting)
 
gboolean meta_is_syncing (void)
 Returns whether X synchronisation is currently enabled.
 
void meta_set_syncing (gboolean setting)
 A handy way to turn on synchronisation on or off for every display.
 
gboolean meta_get_replace_current_wm (void)
 
void meta_set_replace_current_wm (gboolean setting)
 
void meta_debug_spew_real (const char *format,...)
 
void meta_verbose_real (const char *format,...)
 
void meta_bug (const char *format,...) G_GNUC_NORETURN G_ANALYZER_NORETURN
 
void meta_warning (const char *format,...)
 
void meta_fatal (const char *format,...)
 
void meta_topic_real (MetaDebugTopic topic, const char *format,...)
 
void meta_push_no_msg_prefix (void)
 
void meta_pop_no_msg_prefix (void)
 
gint meta_unsigned_long_equal (gconstpointer v1, gconstpointer v2)
 
guint meta_unsigned_long_hash (gconstpointer v)
 
void meta_print_backtrace (void)
 
const char * meta_gravity_to_string (int gravity)
 
char * meta_g_utf8_strndup (const gchar *src, gsize n)
 
GPid meta_show_dialog (const char *type, const char *message, const char *timeout, const char *display, const char *ok_text, const char *cancel_text, const int transient_for, GSList *columns, GSList *entries)
 
GPid meta_show_entry_dialog (const char *message, gint *active_workspace_id, const char *entry_text, const char *display, const char *ok_text, const char *cancel_text, const int transient_for, const GIOFunc stdio_func_cb)
 

Enumeration Type Documentation

◆ MetaDebugTopic

Enumerator
META_DEBUG_FOCUS 
META_DEBUG_WORKAREA 
META_DEBUG_STACK 
META_DEBUG_THEMES 
META_DEBUG_SM 
META_DEBUG_EVENTS 
META_DEBUG_WINDOW_STATE 
META_DEBUG_WINDOW_OPS 
META_DEBUG_GEOMETRY 
META_DEBUG_PLACEMENT 
META_DEBUG_PING 
META_DEBUG_XINERAMA 
META_DEBUG_KEYBINDINGS 
META_DEBUG_SYNC 
META_DEBUG_ERRORS 
META_DEBUG_STARTUP 
META_DEBUG_PREFS 
META_DEBUG_GROUPS 
META_DEBUG_RESIZING 
META_DEBUG_SHAPES 
META_DEBUG_COMPOSITOR 
META_DEBUG_EDGE_RESISTANCE 

Function Documentation

◆ meta_bug()

◆ meta_debug_spew_real()

void meta_debug_spew_real ( const char *  format,
  ... 
)

◆ meta_fatal()

void meta_fatal ( const char *  format,
  ... 
)

References _, meta_exit(), META_EXIT_ERROR, no_prefix, NULL, and utf8_fputs().

Referenced by main(), meta_set_verbose(), and meta_ui_init().

Here is the call graph for this function:

◆ meta_g_utf8_strndup()

char * meta_g_utf8_strndup ( const gchar *  src,
gsize  n 
)

Referenced by set_title_text(), and tab_entry_new().

◆ meta_get_replace_current_wm()

gboolean meta_get_replace_current_wm ( void  )

References replace_current.

Referenced by meta_screen_new().

◆ meta_gravity_to_string()

const char * meta_gravity_to_string ( int  gravity)

◆ meta_is_debugging()

gboolean meta_is_debugging ( void  )

◆ meta_is_syncing()

gboolean meta_is_syncing ( void  )

Returns whether X synchronisation is currently enabled.

Returns
true if we must wait for events whenever we send X requests; false otherwise.
Bug:
This is only called by meta_display_open, but by that time we have already turned syncing on or off on startup, and we don't have any way to do so while Marco is running, so it's rather pointless.

References is_syncing.

Referenced by meta_display_open().

◆ meta_is_verbose()

◆ meta_pop_no_msg_prefix()

void meta_pop_no_msg_prefix ( void  )

◆ meta_print_backtrace()

void meta_print_backtrace ( void  )

◆ meta_push_no_msg_prefix()

void meta_push_no_msg_prefix ( void  )

◆ meta_set_debugging()

void meta_set_debugging ( gboolean  setting)

References is_debugging.

Referenced by main().

◆ meta_set_replace_current_wm()

void meta_set_replace_current_wm ( gboolean  setting)

References replace_current.

Referenced by main().

◆ meta_set_syncing()

void meta_set_syncing ( gboolean  setting)

A handy way to turn on synchronisation on or off for every display.

Bug:
Of course there is only one display ever anyway, so this can be rather hugely simplified.

References is_syncing, and meta_get_display().

Referenced by main().

Here is the call graph for this function:

◆ meta_set_verbose()

void meta_set_verbose ( gboolean  setting)

References _, is_verbose, and meta_fatal().

Referenced by event_callback(), and main().

Here is the call graph for this function:

◆ meta_show_dialog()

GPid meta_show_dialog ( const char *  type,
const char *  message,
const char *  timeout,
const char *  display,
const char *  ok_text,
const char *  cancel_text,
const int  transient_for,
GSList *  columns,
GSList *  entries 
)

References _, meta_warning(), and NULL.

Referenced by delete_ping_timeout_func(), and error_on_command().

Here is the call graph for this function:

◆ meta_show_entry_dialog()

GPid meta_show_entry_dialog ( const char *  message,
gint *  active_workspace_id,
const char *  entry_text,
const char *  display,
const char *  ok_text,
const char *  cancel_text,
const int  transient_for,
const GIOFunc  stdio_func_cb 
)

References _, FALSE, META_DEBUG_KEYBINDINGS, meta_warning(), NULL, and TRUE.

Referenced by handle_rename_workspace().

Here is the call graph for this function:

◆ meta_topic_real()

void meta_topic_real ( MetaDebugTopic  topic,
const char *  format,
  ... 
)

◆ meta_unsigned_long_equal()

gint meta_unsigned_long_equal ( gconstpointer  v1,
gconstpointer  v2 
)

◆ meta_unsigned_long_hash()

guint meta_unsigned_long_hash ( gconstpointer  v)

◆ meta_verbose_real()

void meta_verbose_real ( const char *  format,
  ... 
)

◆ meta_warning()

void meta_warning ( const char *  format,
  ... 
)

References _, no_prefix, NULL, and utf8_fputs().

Referenced by complain_about_broken_client(), dynamic_workspaces_idle_callback(), effects_draw_box_animation_timeout(), enable_compositor(), ensure_work_areas_validated(), error_on_command(), event_callback(), handle_preference_init_int(), handle_preference_update_int(), handle_rename_workspace_callback(), log_handler(), main(), maybe_give_disable_workarounds_warning(), menu_callback(), merge_spanning_rects_in_region(), meta_change_keygrab(), meta_core_get(), meta_display_begin_grab_op(), meta_display_for_x_display(), meta_display_open(), meta_display_ping_window(), meta_frames_unmanage_window(), meta_rectangle_clamp_to_fit_into_region(), meta_rectangle_clip_to_region(), meta_rectangle_shove_into_region(), meta_screen_free(), meta_screen_new(), meta_screen_update_workspace_layout(), meta_show_dialog(), meta_show_entry_dialog(), meta_stack_set_positions(), meta_theme_earliest_version_with_button(), meta_theme_set_current(), meta_window_client_message(), meta_window_get_current_tile_area(), meta_window_kill(), meta_window_menu_popup(), meta_window_raise(), meta_workspace_focus_default_window(), mouse_button_mods_handler(), parse_size_unchecked(), parse_x_position_unchecked(), parse_y_position_unchecked(), process_request_frame_extents(), process_workspace_switch_grab(), recalc_window_features(), reload_net_wm_pid(), reload_transient_for(), safely_remove_workspaces(), sanity_check_timestamps(), timestamp_too_old(), titlebar_handler(), update_binding(), update_sm_hints(), utf8_list_from_results(), utf8_string_from_results(), validate_or_free_results(), and window_activate().

Here is the call graph for this function: