rofi
1.5.1
|
#include <xcb/xcb.h>
#include <cairo.h>
Go to the source code of this file.
Data Structures | |
struct | _workarea |
Macros | |
#define | ATOM_ENUM(x) x |
#define | ATOM_CHAR(x) # x |
#define | EWMH_ATOMS(X) |
Typedefs | |
typedef struct _xcb_stuff | xcb_stuff |
typedef struct _workarea | workarea |
Enumerations | |
enum | { EWMH_ATOMS =( ATOM_ENUM ), NUM_NETATOMS } |
enum | WindowManagerQuirk { WM_EWHM = 0, WM_DO_NOT_CHANGE_CURRENT_DESKTOP = 1, WM_PANGO_WORKSPACE_NAMES = 2 } |
Functions | |
xcb_window_t | xcb_stuff_get_root_window (void) |
char * | window_get_text_prop (xcb_window_t w, xcb_atom_t atom) |
void | window_set_atom_prop (xcb_window_t w, xcb_atom_t prop, xcb_atom_t *atoms, int count) |
int | monitor_active (workarea *mon) |
cairo_surface_t * | x11_helper_get_bg_surface (void) |
cairo_surface_t * | x11_helper_get_screenshot_surface (void) |
void | x11_disable_decoration (xcb_window_t window) |
Variables | |
xcb_stuff * | xcb |
const char * | netatom_names [] |
xcb_atom_t | netatoms [NUM_NETATOMS] |
xcb_depth_t * | depth |
xcb_visualtype_t * | visual |
xcb_colormap_t | map |
WindowManagerQuirk | current_window_manager |
#define EWMH_ATOMS | ( | X | ) |
typedef struct _xcb_stuff xcb_stuff |
anonymous enum |
enum WindowManagerQuirk |
int monitor_active | ( | workarea * | mon | ) |
mon | workarea to be filled in. |
Fills in mon with the information about the monitor rofi should show on.
Definition at line 680 of file xcb.c.
References config, mon, Settings::monitor, monitor_active_from_id(), monitor_active_from_winid(), monitor_dimensions(), monitor_get_dimension(), _xcb_stuff::monitors, _workarea::next, and xcb.
Referenced by __create_window(), and config_sanity_check().
char* window_get_text_prop | ( | xcb_window_t | w, |
xcb_atom_t | atom | ||
) |
w | The xcb_window_t to read property from. |
atom | The property identifier |
Get text property defined by atom from window. Support utf8.
Definition at line 151 of file xcb.c.
References _xcb_stuff::connection, netatoms, rofi_latin_to_utf8_strdup(), and xcb.
Referenced by rofi_view_paste().
void window_set_atom_prop | ( | xcb_window_t | w, |
xcb_atom_t | prop, | ||
xcb_atom_t * | atoms, | ||
int | count | ||
) |
w | The xcb_window_t to set property on |
prop | Atom of the property to change |
atoms | List of atoms to change the property too |
count | The length of the atoms list. |
Set property on window.
Definition at line 176 of file xcb.c.
References _xcb_stuff::connection, count, and xcb.
Referenced by __create_window().
void x11_disable_decoration | ( | xcb_window_t | window | ) |
window | The X11 window to modify |
Set the right hints to disable the window decoration. (Set MOTIF_WM_HINTS, decoration field)
Definition at line 1350 of file xcb.c.
References _xcb_stuff::connection, flags, netatoms, and xcb.
Referenced by __create_window().
cairo_surface_t* x11_helper_get_bg_surface | ( | void | ) |
Gets a surface containing the background image of the desktop.
Definition at line 139 of file xcb.c.
References _xcb_stuff::connection, get_root_pixmap(), netatoms, root_visual, _xcb_stuff::screen, and xcb.
Referenced by rofi_view_setup_fake_transparency().
cairo_surface_t* x11_helper_get_screenshot_surface | ( | void | ) |
Gets a surface for the root window of the desktop.
Can be used to take screenshot.
Holds for each supported modifier the possible modifier mask. Check x11_mod_masks[MODIFIER]&mask != 0 to see if MODIFIER is activated.
Definition at line 104 of file xcb.c.
References _xcb_stuff::connection, root_visual, _xcb_stuff::screen, xcb, and xcb_stuff_get_root_window().
Referenced by rofi_view_setup_fake_transparency().
xcb_window_t xcb_stuff_get_root_window | ( | void | ) |
Get the root window.
Definition at line 1310 of file xcb.c.
References _xcb_stuff::screen, and xcb.
Referenced by __create_window(), display_late_setup(), lazy_grab_keyboard(), lazy_grab_pointer(), x11_helper_discover_window_manager(), and x11_helper_get_screenshot_surface().
WindowManagerQuirk current_window_manager |
Indicates the current window manager. This is used for work-arounds.
Definition at line 72 of file xcb.c.
Referenced by x11_helper_discover_window_manager().
xcb_depth_t* depth |
Depth of visual
Depth of root window.
Definition at line 90 of file xcb.c.
Referenced by __create_window(), rofi_theme_print_property_index(), rofi_theme_resolve_link_property(), rofi_view_temp_configure_notify(), rofi_view_window_update_size(), and x11_create_visual_and_colormap().
xcb_colormap_t map |
Color map to use for creating window
Definition at line 92 of file xcb.c.
Referenced by __create_window(), rofi_view_cleanup(), and x11_create_visual_and_colormap().
const char* netatom_names[] |
atoms as string
Definition at line 98 of file xcb.c.
Referenced by x11_create_frequently_used_atoms().
xcb_atom_t netatoms[NUM_NETATOMS] |
atoms
Definition at line 97 of file xcb.c.
Referenced by rofi_view_trigger_global_action(), window_get_text_prop(), x11_create_frequently_used_atoms(), x11_disable_decoration(), and x11_helper_get_bg_surface().
xcb_visualtype_t* visual |
Visual to use for creating window
Definition at line 91 of file xcb.c.
Referenced by __create_window(), rofi_view_temp_configure_notify(), rofi_view_window_update_size(), and x11_create_visual_and_colormap().
xcb_stuff* xcb |
Global pointer to xcb_stuff instance.
Definition at line 85 of file xcb.c.
Referenced by __create_window(), config_parse_xresource_options(), display_cleanup(), display_dump_monitor_layout(), display_early_cleanup(), display_setup(), display_startup_notification(), lazy_grab_keyboard(), main(), main_loop_x11_event_handler(), main_loop_x11_event_handler_view(), monitor_active(), monitor_active_from_id(), monitor_active_from_id_focused(), monitor_active_from_winid(), monitor_dimensions(), monitor_get_dimension(), pointer_get(), release_keyboard(), release_pointer(), rofi_view_cleanup(), rofi_view_create(), rofi_view_error_dialog(), rofi_view_hide(), rofi_view_paste(), rofi_view_repaint(), rofi_view_set_selected_line(), rofi_view_temp_configure_notify(), rofi_view_trigger_global_action(), rofi_view_window_update_size(), take_keyboard(), take_pointer(), window_get_text_prop(), window_set_atom_prop(), x11_build_monitor_layout(), x11_build_monitor_layout_xinerama(), x11_create_frequently_used_atoms(), x11_create_visual_and_colormap(), x11_disable_decoration(), x11_get_monitor_from_output(), x11_helper_discover_window_manager(), x11_helper_get_bg_surface(), x11_helper_get_screenshot_surface(), x11_is_extension_present(), x11_monitors_free(), and xcb_stuff_get_root_window().