rofi
1.7.0
|
Go to the source code of this file.
Functions | |
gboolean | display_setup (GMainLoop *main_loop, NkBindings *bindings) |
gboolean | display_late_setup (void) |
void | display_early_cleanup (void) |
void | display_cleanup (void) |
void | display_dump_monitor_layout (void) |
void | display_startup_notification (RofiHelperExecuteContext *context, GSpawnChildSetupFunc *child_setup, gpointer *user_data) |
void display_cleanup | ( | void | ) |
Cleanup any remaining display related stuff
Definition at line 1642 of file xcb.c.
References _xcb_stuff::bindings_seat, _xcb_stuff::connection, _xcb_stuff::ewmh, _xcb_stuff::screen, _xcb_stuff::screen_nbr, _xcb_stuff::sncontext, _xcb_stuff::sndisplay, _xcb_stuff::source, x11_monitors_free(), and xcb.
Referenced by cleanup().
void display_dump_monitor_layout | ( | void | ) |
Dumps the display layout for -help output
Definition at line 663 of file xcb.c.
References color_bold, color_reset, _xcb_stuff::monitors, _workarea::next, and xcb.
Referenced by help().
void display_early_cleanup | ( | void | ) |
Do some early cleanup, like unmapping the surface
Definition at line 1636 of file xcb.c.
References _xcb_stuff::connection, release_keyboard(), release_pointer(), and xcb.
Referenced by rofi_view_hide(), and teardown().
gboolean display_late_setup | ( | void | ) |
Do some late setup of the display backend
Create window (without showing)
Definition at line 1601 of file xcb.c.
References find_arg(), lazy_grab_keyboard(), lazy_grab_pointer(), take_keyboard(), take_pointer(), x11_create_visual_and_colormap(), x11_lookup_cursors(), and xcb_stuff_get_root_window().
Referenced by main().
gboolean display_setup | ( | GMainLoop * | main_loop, |
NkBindings * | bindings | ||
) |
main_loop | The GMainLoop |
bindings | The bindings object |
Setup the display backend
Definition at line 1383 of file xcb.c.
References bindings, _xcb_stuff::bindings_seat, _xcb_stuff::connection, _xcb_stuff::device_id, error_trap_pop(), error_trap_push(), _xcb_stuff::ewmh, find_arg_str(), _xcb_stuff::first_event, _xcb_stuff::main_loop, main_loop, main_loop_x11_event_handler(), _xcb_stuff::screen, _xcb_stuff::screen_nbr, _xcb_stuff::sncontext, _xcb_stuff::sndisplay, _xcb_stuff::source, TICK_N, x11_build_monitor_layout(), x11_create_frequently_used_atoms(), x11_helper_discover_window_manager(), xcb, and _xcb_stuff::xkb.
Referenced by main().
void display_startup_notification | ( | RofiHelperExecuteContext * | context, |
GSpawnChildSetupFunc * | child_setup, | ||
gpointer * | user_data | ||
) |
context | The startup notification context for the application to launch |
child_setup | A pointer to return the child setup function |
user_data | A pointer to return the child setup function user_data |
Provides the needed child setup function
Definition at line 689 of file xcb.c.
References RofiHelperExecuteContext::app_id, RofiHelperExecuteContext::binary, RofiHelperExecuteContext::command, RofiHelperExecuteContext::description, _xcb_stuff::ewmh, RofiHelperExecuteContext::icon, _xcb_stuff::last_timestamp, RofiHelperExecuteContext::name, _xcb_stuff::screen_nbr, sn_launcher_context_set_application_id, _xcb_stuff::sndisplay, RofiHelperExecuteContext::wmclass, and xcb.
Referenced by helper_execute().