rofi 2.1.0
display.c File Reference
#include "keyb.h"
#include <glib.h>
#include "display-internal.h"
#include "display.h"
#include "view.h"
#include "view-internal.h"
Include dependency graph for display.c:

Go to the source code of this file.

Functions

void display_init (const display_proxy *disp_in)
int monitor_active (workarea *mon)
void display_set_input_focus (guint w)
void display_revert_input_focus (void)
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)
guint display_scale (void)
void display_get_clipboard_data (enum clipboard_type type, ClipboardCb callback, void *user_data)
void display_set_fullscreen_mode (void)

Variables

static const display_proxy * proxy

Function Documentation

◆ display_cleanup()

void display_cleanup ( void )

Cleanup any remaining display related stuff

Definition at line 58 of file display.c.

References _display_proxy::cleanup, display_cleanup(), and proxy.

Referenced by cleanup(), display_cleanup(), and display_init().

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 64 of file display.c.

References display_dump_monitor_layout(), _display_proxy::dump_monitor_layout, and proxy.

Referenced by display_dump_monitor_layout(), display_init(), and help().

Here is the call graph for this function:
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 52 of file display.c.

References display_early_cleanup(), _display_proxy::early_cleanup, and proxy.

Referenced by display_early_cleanup(), display_init(), teardown(), wayland_rofi_view_hide(), and xcb_rofi_view_hide().

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

◆ display_get_clipboard_data()

void display_get_clipboard_data ( enum clipboard_type type,
ClipboardCb callback,
void * user_data )

Definition at line 85 of file display.c.

References display_get_clipboard_data(), _display_proxy::get_clipboard_data, and proxy.

Referenced by display_get_clipboard_data(), and rofi_view_trigger_global_action().

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

◆ display_init()

void display_init ( const display_proxy * disp_in)

Definition at line 13 of file display.c.

References display_init(), proxy, _display_proxy::view, and view_init().

Referenced by display_init(), display_init(), and main().

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

Definition at line 45 of file display.c.

References display_late_setup(), _display_proxy::late_setup, and proxy.

Referenced by display_init(), display_late_setup(), and main().

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

◆ display_revert_input_focus()

void display_revert_input_focus ( void )

Definition at line 32 of file display.c.

References display_revert_input_focus(), proxy, and _display_proxy::revert_input_focus.

Referenced by display_init(), display_revert_input_focus(), and xcb_rofi_view_hide().

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

◆ display_scale()

guint display_scale ( void )

Definition at line 78 of file display.c.

References display_scale(), proxy, and _display_proxy::scale.

Referenced by _get_icon(), _get_icon(), _get_icon(), display_init(), display_scale(), dmenu_get_icon(), main(), rofi_icon_fetcher_query(), rofi_icon_fetcher_query_advanced(), script_get_icon(), and wayland_rofi_view_update().

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

◆ display_set_fullscreen_mode()

void display_set_fullscreen_mode ( void )

Definition at line 92 of file display.c.

References display_set_fullscreen_mode(), proxy, and _display_proxy::set_fullscreen_mode.

Referenced by display_set_fullscreen_mode(), and wayland___create_window().

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

◆ display_set_input_focus()

void display_set_input_focus ( guint w)

Definition at line 26 of file display.c.

References display_set_input_focus(), proxy, and _display_proxy::set_input_focus.

Referenced by display_init(), display_set_input_focus(), and rofi_view_create().

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 38 of file display.c.

References bindings, display_setup(), main_loop, proxy, and _display_proxy::setup.

Referenced by display_init(), display_setup(), and 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 70 of file display.c.

References display_startup_notification(), proxy, and _display_proxy::startup_notification.

Referenced by display_init(), display_startup_notification(), and helper_execute_env().

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

◆ monitor_active()

int monitor_active ( workarea * mon)
Parameters
monworkarea to be filled in.

Fills in #mon with the information about the monitor rofi should show on.

Returns
TRUE if monitor is found, FALSE if no monitor could be detected.

Definition at line 19 of file display.c.

References _display_proxy::monitor_active, monitor_active(), and proxy.

Referenced by config_sanity_check(), display_init(), monitor_active(), rofi_theme_parse_process_conditionals(), and xcb___create_window().

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

Variable Documentation

◆ proxy