|
rofi 2.0.0
|
#include <cairo.h>#include <xcb/xcb.h>

Go to the source code of this file.
Macros | |
| #define | ATOM_ENUM(x) |
| #define | ATOM_CHAR(x) |
| #define | EWMH_ATOMS(X) |
Typedefs | |
| typedef struct _xcb_stuff | xcb_stuff |
Enumerations | |
| enum | { EWMH_ATOMS =(ATOM_ENUM) , NUM_NETATOMS } |
| enum | X11CursorType { CURSOR_DEFAULT = 0 , CURSOR_POINTER , CURSOR_TEXT , NUM_CURSORS } |
| enum | WindowManagerQuirk { WM_EWHM = 0 , WM_DO_NOT_CHANGE_CURRENT_DESKTOP = 1 , WM_PANGO_WORKSPACE_NAMES = 2 } |
Functions | |
| void | xcb_stuff_set_clipboard (char *data) |
| 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) |
| 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) |
| void | x11_set_cursor (xcb_window_t window, X11CursorType type) |
| cairo_surface_t * | x11_helper_get_screenshot_surface_window (xcb_window_t window, int size) |
| void | cairo_image_surface_blur (cairo_surface_t *surface, int radius, double deviation) |
| char * | x11_helper_get_window_manager (void) |
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 ATOM_ENUM | ( | x | ) |
| #define EWMH_ATOMS | ( | X | ) |
| typedef struct _xcb_stuff xcb_stuff |
| anonymous enum |
| enum WindowManagerQuirk |
| enum X11CursorType |
| void cairo_image_surface_blur | ( | cairo_surface_t * | surface, |
| int | radius, | ||
| double | deviation ) |
| surface | |
| radius | |
| deviation |
Blur the content of the surface with radius and deviation.
Definition at line 178 of file display.c.
References create_kernel(), TICK, and TICK_N.
Referenced by xcb_rofi_view_setup_fake_transparency().


| 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 388 of file display.c.
References 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 414 of file display.c.
Referenced by xcb___create_window().

| void x11_disable_decoration | ( | xcb_window_t | window | ) |
| cairo_surface_t * x11_helper_get_bg_surface | ( | void | ) |
Gets a surface containing the background image of the desktop.
Definition at line 374 of file display.c.
References get_root_pixmap(), netatoms, root_visual, and xcb.
Referenced by xcb_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 348 of file display.c.
References root_visual, xcb, and xcb_stuff_get_root_window().
Referenced by xcb_rofi_view_setup_fake_transparency().


| cairo_surface_t * x11_helper_get_screenshot_surface_window | ( | xcb_window_t | window, |
| int | size ) |
| window | the window the screenshot |
| size | Size of the thumbnail |
Creates a thumbnail of the window.
Definition at line 287 of file display.c.
References lookup_visual(), and xcb.

| char * x11_helper_get_window_manager | ( | void | ) |
Get the currently detected window manager.
Definition at line 1592 of file display.c.
References xcb, and xcb_stuff_get_root_window().
Referenced by help().


| void x11_set_cursor | ( | xcb_window_t | window, |
| X11CursorType | type ) |
| window | |
| type |
Change mouse cursor
Definition at line 1977 of file display.c.
References cursors, NUM_CURSORS, and xcb.
Referenced by xcb_rofi_view_set_cursor().

| xcb_window_t xcb_stuff_get_root_window | ( | void | ) |
Get the root window.
Definition at line 1911 of file display.c.
References xcb.
Referenced by lazy_grab_keyboard(), lazy_grab_pointer(), x11_helper_discover_window_manager(), x11_helper_get_screenshot_surface(), x11_helper_get_window_manager(), xcb___create_window(), and xcb_display_late_setup().

| void xcb_stuff_set_clipboard | ( | char * | data | ) |
| data | String to copy to clipboard. |
copies string to clipboard.
Definition at line 1989 of file display.c.
References xcb.
Referenced by main_loop_x11_event_handler_view(), rofi_view_trigger_global_action(), and xcb_rofi_view_cleanup().

|
extern |
Indicates the current window manager. This is used for work-arounds.
Definition at line 87 of file display.c.
Referenced by x11_helper_discover_window_manager().
|
extern |
Depth of visual
Depth of root window.
Definition at line 108 of file display.c.
Referenced by x11_create_visual_and_colormap(), xcb___create_window(), xcb_rofi_view_temp_configure_notify(), and xcb_rofi_view_window_update_size().
|
extern |
Color map to use for creating window
Definition at line 110 of file display.c.
Referenced by x11_create_visual_and_colormap(), xcb___create_window(), and xcb_rofi_view_cleanup().
|
extern |
atoms as string
Definition at line 116 of file display.c.
Referenced by x11_create_frequently_used_atoms().
|
extern |
atoms
Definition at line 115 of file display.c.
Referenced by main_loop_x11_event_handler_view(), rofi_view_trigger_global_action(), window_get_text_prop(), x11_create_frequently_used_atoms(), x11_disable_decoration(), x11_helper_get_bg_surface(), and xcb___create_window().
|
extern |
Visual to use for creating window
Definition at line 109 of file display.c.
Referenced by x11_create_visual_and_colormap(), xcb___create_window(), xcb_rofi_view_temp_configure_notify(), and xcb_rofi_view_window_update_size().
|
extern |
Global pointer to xcb_stuff instance.
Definition at line 103 of file display.c.
Referenced by lazy_grab_keyboard(), main_loop_x11_event_handler(), main_loop_x11_event_handler_view(), 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_key_press_event_handler(), rofi_key_release_event_handler(), rofi_view_create(), rofi_view_error_dialog(), rofi_view_paste(), rofi_view_set_selected_line(), rofi_view_trigger_global_action(), 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_helper_get_screenshot_surface_window(), x11_helper_get_window_manager(), x11_is_extension_present(), x11_lookup_cursors(), x11_monitors_free(), x11_set_cursor(), xcb___create_window(), xcb_display_cleanup(), xcb_display_dump_monitor_layout(), xcb_display_early_cleanup(), xcb_display_monitor_active(), xcb_display_revert_input_focus(), xcb_display_set_input_focus(), xcb_display_setup(), xcb_display_startup_notification(), xcb_rofi_view_cleanup(), xcb_rofi_view_hide(), xcb_rofi_view_ping_mouse(), xcb_rofi_view_repaint(), xcb_rofi_view_set_window_title(), xcb_rofi_view_temp_configure_notify(), xcb_rofi_view_window_update_size(), xcb_stuff_get_root_window(), and xcb_stuff_set_clipboard().