marco 1.29.1
Window manager
Loading...
Searching...
No Matches
xprops.h File Reference
View source
#include <config.h>
#include "display.h"
#include <X11/Xutil.h>
Include dependency graph for xprops.h:
This graph shows which files directly or indirectly include this file:

Data Structures

struct  MotifWmHints
 
struct  MetaPropValue
 

Macros

#define MWM_HINTS_FUNCTIONS   (1L << 0)
 
#define MWM_HINTS_DECORATIONS   (1L << 1)
 
#define MWM_HINTS_INPUT_MODE   (1L << 2)
 
#define MWM_HINTS_STATUS   (1L << 3)
 
#define MWM_FUNC_ALL   (1L << 0)
 
#define MWM_FUNC_RESIZE   (1L << 1)
 
#define MWM_FUNC_MOVE   (1L << 2)
 
#define MWM_FUNC_MINIMIZE   (1L << 3)
 
#define MWM_FUNC_MAXIMIZE   (1L << 4)
 
#define MWM_FUNC_CLOSE   (1L << 5)
 
#define MWM_DECOR_ALL   (1L << 0)
 
#define MWM_DECOR_BORDER   (1L << 1)
 
#define MWM_DECOR_RESIZEH   (1L << 2)
 
#define MWM_DECOR_TITLE   (1L << 3)
 
#define MWM_DECOR_MENU   (1L << 4)
 
#define MWM_DECOR_MINIMIZE   (1L << 5)
 
#define MWM_DECOR_MAXIMIZE   (1L << 6)
 
#define MWM_INPUT_MODELESS   0
 
#define MWM_INPUT_PRIMARY_APPLICATION_MODAL   1
 
#define MWM_INPUT_SYSTEM_MODAL   2
 
#define MWM_INPUT_FULL_APPLICATION_MODAL   3
 
#define MWM_INPUT_APPLICATION_MODAL   MWM_INPUT_PRIMARY_APPLICATION_MODAL
 
#define MWM_TEAROFF_WINDOW   (1L<<0)
 

Typedefs

typedef struct MotifWmHints MwmHints
 

Enumerations

enum  MetaPropValueType {
  META_PROP_VALUE_INVALID , META_PROP_VALUE_UTF8 , META_PROP_VALUE_STRING , META_PROP_VALUE_STRING_AS_UTF8 ,
  META_PROP_VALUE_MOTIF_HINTS , META_PROP_VALUE_CARDINAL , META_PROP_VALUE_WINDOW , META_PROP_VALUE_CARDINAL_LIST ,
  META_PROP_VALUE_UTF8_LIST , META_PROP_VALUE_ATOM_LIST , META_PROP_VALUE_TEXT_PROPERTY , META_PROP_VALUE_WM_HINTS ,
  META_PROP_VALUE_CLASS_HINT , META_PROP_VALUE_SIZE_HINTS , META_PROP_VALUE_SYNC_COUNTER
}
 

Functions

gboolean meta_prop_get_atom_list (MetaDisplay *display, Window xwindow, Atom xatom, Atom **atoms_p, int *n_atoms_p)
 
gboolean meta_prop_get_motif_hints (MetaDisplay *display, Window xwindow, Atom xatom, MotifWmHints **hints_p)
 
gboolean meta_prop_get_cardinal_list (MetaDisplay *display, Window xwindow, Atom xatom, gulong **cardinals_p, int *n_cardinals_p)
 
gboolean meta_prop_get_latin1_string (MetaDisplay *display, Window xwindow, Atom xatom, char **str_p)
 
gboolean meta_prop_get_utf8_string (MetaDisplay *display, Window xwindow, Atom xatom, char **str_p)
 
gboolean meta_prop_get_utf8_list (MetaDisplay *display, Window xwindow, Atom xatom, char ***str_p, int *n_str_p)
 
void meta_prop_set_utf8_string_hint (MetaDisplay *display, Window xwindow, Atom atom, const char *val)
 
gboolean meta_prop_get_window (MetaDisplay *display, Window xwindow, Atom xatom, Window *window_p)
 
gboolean meta_prop_get_cardinal (MetaDisplay *display, Window xwindow, Atom xatom, gulong *cardinal_p)
 
gboolean meta_prop_get_cardinal_with_atom_type (MetaDisplay *display, Window xwindow, Atom xatom, Atom prop_type, gulong *cardinal_p)
 
gboolean meta_prop_get_text_property (MetaDisplay *display, Window xwindow, Atom xatom, char **utf8_str_p)
 
gboolean meta_prop_get_wm_hints (MetaDisplay *display, Window xwindow, Atom xatom, XWMHints **hints_p)
 
gboolean meta_prop_get_class_hint (MetaDisplay *display, Window xwindow, Atom xatom, XClassHint *class_hint)
 
gboolean meta_prop_get_size_hints (MetaDisplay *display, Window xwindow, Atom xatom, XSizeHints **hints_p, gulong *flags_p)
 
void meta_prop_get_values (MetaDisplay *display, Window xwindow, MetaPropValue *values, int n_values)
 
void meta_prop_free_values (MetaPropValue *values, int n_values)
 

Macro Definition Documentation

◆ MWM_DECOR_ALL

#define MWM_DECOR_ALL   (1L << 0)

◆ MWM_DECOR_BORDER

#define MWM_DECOR_BORDER   (1L << 1)

◆ MWM_DECOR_MAXIMIZE

#define MWM_DECOR_MAXIMIZE   (1L << 6)

◆ MWM_DECOR_MENU

#define MWM_DECOR_MENU   (1L << 4)

◆ MWM_DECOR_MINIMIZE

#define MWM_DECOR_MINIMIZE   (1L << 5)

◆ MWM_DECOR_RESIZEH

#define MWM_DECOR_RESIZEH   (1L << 2)

◆ MWM_DECOR_TITLE

#define MWM_DECOR_TITLE   (1L << 3)

◆ MWM_FUNC_ALL

#define MWM_FUNC_ALL   (1L << 0)

◆ MWM_FUNC_CLOSE

#define MWM_FUNC_CLOSE   (1L << 5)

◆ MWM_FUNC_MAXIMIZE

#define MWM_FUNC_MAXIMIZE   (1L << 4)

◆ MWM_FUNC_MINIMIZE

#define MWM_FUNC_MINIMIZE   (1L << 3)

◆ MWM_FUNC_MOVE

#define MWM_FUNC_MOVE   (1L << 2)

◆ MWM_FUNC_RESIZE

#define MWM_FUNC_RESIZE   (1L << 1)

◆ MWM_HINTS_DECORATIONS

#define MWM_HINTS_DECORATIONS   (1L << 1)

◆ MWM_HINTS_FUNCTIONS

#define MWM_HINTS_FUNCTIONS   (1L << 0)

◆ MWM_HINTS_INPUT_MODE

#define MWM_HINTS_INPUT_MODE   (1L << 2)

◆ MWM_HINTS_STATUS

#define MWM_HINTS_STATUS   (1L << 3)

◆ MWM_INPUT_APPLICATION_MODAL

#define MWM_INPUT_APPLICATION_MODAL   MWM_INPUT_PRIMARY_APPLICATION_MODAL

◆ MWM_INPUT_FULL_APPLICATION_MODAL

#define MWM_INPUT_FULL_APPLICATION_MODAL   3

◆ MWM_INPUT_MODELESS

#define MWM_INPUT_MODELESS   0

◆ MWM_INPUT_PRIMARY_APPLICATION_MODAL

#define MWM_INPUT_PRIMARY_APPLICATION_MODAL   1

◆ MWM_INPUT_SYSTEM_MODAL

#define MWM_INPUT_SYSTEM_MODAL   2

◆ MWM_TEAROFF_WINDOW

#define MWM_TEAROFF_WINDOW   (1L<<0)

Typedef Documentation

◆ MwmHints

typedef struct MotifWmHints MwmHints

Enumeration Type Documentation

◆ MetaPropValueType

Enumerator
META_PROP_VALUE_INVALID 
META_PROP_VALUE_UTF8 
META_PROP_VALUE_STRING 
META_PROP_VALUE_STRING_AS_UTF8 
META_PROP_VALUE_MOTIF_HINTS 
META_PROP_VALUE_CARDINAL 
META_PROP_VALUE_WINDOW 
META_PROP_VALUE_CARDINAL_LIST 
META_PROP_VALUE_UTF8_LIST 
META_PROP_VALUE_ATOM_LIST 
META_PROP_VALUE_TEXT_PROPERTY 
META_PROP_VALUE_WM_HINTS 
META_PROP_VALUE_CLASS_HINT 
META_PROP_VALUE_SIZE_HINTS 
META_PROP_VALUE_SYNC_COUNTER 

Function Documentation

◆ meta_prop_free_values()

void meta_prop_free_values ( MetaPropValue *  values,
int  n_values 
)

References free_value().

Referenced by meta_group_reload_properties(), and meta_window_reload_properties_from_xwindow().

Here is the call graph for this function:

◆ meta_prop_get_atom_list()

gboolean meta_prop_get_atom_list ( MetaDisplay *  display,
Window  xwindow,
Atom  xatom,
Atom **  atoms_p,
int *  n_atoms_p 
)

References atom_list_from_results(), FALSE, get_property(), and NULL.

Referenced by meta_window_update_net_wm_type().

Here is the call graph for this function:

◆ meta_prop_get_cardinal()

gboolean meta_prop_get_cardinal ( MetaDisplay *  display,
Window  xwindow,
Atom  xatom,
gulong *  cardinal_p 
)

References meta_prop_get_cardinal_with_atom_type().

Referenced by meta_screen_new().

Here is the call graph for this function:

◆ meta_prop_get_cardinal_list()

gboolean meta_prop_get_cardinal_list ( MetaDisplay *  display,
Window  xwindow,
Atom  xatom,
gulong **  cardinals_p,
int *  n_cardinals_p 
)

References cardinal_list_from_results(), FALSE, get_property(), and NULL.

Referenced by meta_screen_update_workspace_layout(), meta_window_get_icon_geometry(), and meta_window_update_struts().

Here is the call graph for this function:

◆ meta_prop_get_cardinal_with_atom_type()

gboolean meta_prop_get_cardinal_with_atom_type ( MetaDisplay *  display,
Window  xwindow,
Atom  xatom,
Atom  prop_type,
gulong *  cardinal_p 
)

References cardinal_with_atom_type_from_results(), FALSE, and get_property().

Referenced by meta_prop_get_cardinal(), and meta_window_new_with_attrs().

Here is the call graph for this function:

◆ meta_prop_get_class_hint()

gboolean meta_prop_get_class_hint ( MetaDisplay *  display,
Window  xwindow,
Atom  xatom,
XClassHint *  class_hint 
)

References class_hint_from_results(), FALSE, get_property(), and NULL.

Here is the call graph for this function:

◆ meta_prop_get_latin1_string()

gboolean meta_prop_get_latin1_string ( MetaDisplay *  display,
Window  xwindow,
Atom  xatom,
char **  str_p 
)

References FALSE, get_property(), latin1_string_from_results(), and NULL.

Referenced by meta_window_update_role(), and update_sm_hints().

Here is the call graph for this function:

◆ meta_prop_get_motif_hints()

gboolean meta_prop_get_motif_hints ( MetaDisplay *  display,
Window  xwindow,
Atom  xatom,
MotifWmHints **  hints_p 
)

References FALSE, get_property(), motif_hints_from_results(), and NULL.

Referenced by process_request_frame_extents().

Here is the call graph for this function:

◆ meta_prop_get_size_hints()

gboolean meta_prop_get_size_hints ( MetaDisplay *  display,
Window  xwindow,
Atom  xatom,
XSizeHints **  hints_p,
gulong *  flags_p 
)

References FALSE, get_property(), NULL, and size_hints_from_results().

Here is the call graph for this function:

◆ meta_prop_get_text_property()

gboolean meta_prop_get_text_property ( MetaDisplay *  display,
Window  xwindow,
Atom  xatom,
char **  utf8_str_p 
)

References FALSE, get_property(), and text_property_from_results().

Here is the call graph for this function:

◆ meta_prop_get_utf8_list()

gboolean meta_prop_get_utf8_list ( MetaDisplay *  display,
Window  xwindow,
Atom  xatom,
char ***  str_p,
int *  n_str_p 
)

References FALSE, get_property(), NULL, and utf8_list_from_results().

Referenced by meta_screen_update_workspace_names().

Here is the call graph for this function:

◆ meta_prop_get_utf8_string()

gboolean meta_prop_get_utf8_string ( MetaDisplay *  display,
Window  xwindow,
Atom  xatom,
char **  str_p 
)

References FALSE, get_property(), NULL, and utf8_string_from_results().

Here is the call graph for this function:

◆ meta_prop_get_values()

void meta_prop_get_values ( MetaDisplay *  display,
Window  xwindow,
MetaPropValue *  values,
int  n_values 
)

References ag_get_next_completed_task(), ag_task_get_reply_and_free(), ag_task_have_reply(), ag_Xmalloc(), MetaPropValue::atom, MetaPropValue::atom_list, atom_list_from_results(), MetaPropValue::atoms, GetPropertyResults::bytes_after, MetaPropValue::cardinal, MetaPropValue::cardinal_list, cardinal_list_from_results(), cardinal_with_atom_type_from_results(), MetaPropValue::cardinals, MetaPropValue::class_hint, class_hint_from_results(), GetPropertyResults::display, MetaPropValue::flags, GetPropertyResults::format, get_task(), MetaPropValue::hints, latin1_string_from_results(), latin1_to_utf8(), meta_bug(), META_DEBUG_SYNC, META_PROP_VALUE_ATOM_LIST, META_PROP_VALUE_CARDINAL, META_PROP_VALUE_CARDINAL_LIST, META_PROP_VALUE_CLASS_HINT, META_PROP_VALUE_INVALID, META_PROP_VALUE_MOTIF_HINTS, META_PROP_VALUE_SIZE_HINTS, META_PROP_VALUE_STRING, META_PROP_VALUE_STRING_AS_UTF8, META_PROP_VALUE_SYNC_COUNTER, META_PROP_VALUE_TEXT_PROPERTY, META_PROP_VALUE_UTF8, META_PROP_VALUE_UTF8_LIST, META_PROP_VALUE_WINDOW, META_PROP_VALUE_WM_HINTS, meta_XFree, MetaPropValue::motif_hints, motif_hints_from_results(), MetaPropValue::n_atoms, MetaPropValue::n_cardinals, GetPropertyResults::n_items, MetaPropValue::n_strings, NULL, GetPropertyResults::prop, MetaPropValue::required_type, MetaPropValue::size_hints, size_hints_from_results(), MetaPropValue::str, MetaPropValue::string_list, MetaPropValue::strings, text_property_from_results(), GetPropertyResults::type, MetaPropValue::type, utf8_list_from_results(), utf8_string_from_results(), MetaPropValue::v, window_from_results(), MetaPropValue::wm_hints, wm_hints_from_results(), GetPropertyResults::xatom, _MetaDisplay::xdisplay, GetPropertyResults::xwindow, and MetaPropValue::xwindow.

Referenced by meta_group_reload_properties(), and meta_window_reload_properties_from_xwindow().

Here is the call graph for this function:

◆ meta_prop_get_window()

gboolean meta_prop_get_window ( MetaDisplay *  display,
Window  xwindow,
Atom  xatom,
Window *  window_p 
)

References FALSE, get_property(), and window_from_results().

Referenced by read_client_leader().

Here is the call graph for this function:

◆ meta_prop_get_wm_hints()

gboolean meta_prop_get_wm_hints ( MetaDisplay *  display,
Window  xwindow,
Atom  xatom,
XWMHints **  hints_p 
)

References FALSE, get_property(), NULL, and wm_hints_from_results().

Here is the call graph for this function:

◆ meta_prop_set_utf8_string_hint()

void meta_prop_set_utf8_string_hint ( MetaDisplay *  display,
Window  xwindow,
Atom  atom,
const char *  val 
)

References FALSE, meta_error_trap_pop(), meta_error_trap_push(), and _MetaDisplay::xdisplay.

Referenced by meta_display_open(), and set_title_text().

Here is the call graph for this function: