rofi  1.7.0
display.h File Reference
#include "helper.h"
#include "nkutils-bindings.h"
#include <glib.h>
Include dependency graph for display.h:
This graph shows which files directly or indirectly include this file:

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)
 

Function Documentation

◆ display_cleanup()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ display_dump_monitor_layout()

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().

Here is the caller graph for this function:

◆ display_early_cleanup()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ display_late_setup()

gboolean display_late_setup ( void  )

Do some late setup of the display backend

Returns
Whether the setup succeeded or not

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ display_setup()

gboolean display_setup ( GMainLoop *  main_loop,
NkBindings *  bindings 
)
Parameters
main_loopThe GMainLoop
bindingsThe bindings object

Setup the display backend

Returns
Whether the setup succeeded or not

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ display_startup_notification()

void display_startup_notification ( RofiHelperExecuteContext context,
GSpawnChildSetupFunc *  child_setup,
gpointer *  user_data 
)
Parameters
contextThe startup notification context for the application to launch
child_setupA pointer to return the child setup function
user_dataA 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().

Here is the caller graph for this function: