i3
|
#include <config.h>
Go to the source code of this file.
Functions | |
Con * | output_get_content (Con *output) |
Returns the output container below the given output container. | |
Output * | get_output_from_string (Output *current_output, const char *output_str) |
Returns an 'output' corresponding to one of left/right/down/up or a specific output name. | |
char * | output_primary_name (Output *output) |
Retrieves the primary name of an output. | |
Output * | get_output_for_con (Con *con) |
Retrieves the output for a given container. | |
void | output_push_sticky_windows (Con *old_focus) |
Iterates over all outputs and pushes sticky windows to the currently visible workspace on that output. | |
Retrieves the output for a given container.
Never returns NULL. There is an assertion that will fail if the container is inside an internal workspace. Use con_is_internal() if needed before calling this function.
Definition at line 63 of file output.c.
References con_get_output(), get_output_by_name(), and Con::name.
Referenced by cmd_focus_output(), cmd_move_con_to_output(), cmd_rename_workspace(), con_move_to_output_name(), get_output_from_string(), init_ws_for_output(), move_to_output_directed(), and workspace_move_to_output().
Returns an 'output' corresponding to one of left/right/down/up or a specific output name.
Definition at line 33 of file output.c.
References D_DOWN, D_LEFT, D_RIGHT, D_UP, focused, get_output_by_name(), get_output_for_con(), and get_output_next_wrap().
Referenced by con_move_to_output_name(), and user_output_names_find_next().
Returns the output container below the given output container.
Definition at line 16 of file output.c.
References TAILQ_FOREACH, and Con::type.
Referenced by _con_move_to_con(), check_crossing_screen_boundary(), cmd_append_layout(), cmd_focus_output(), con_move_to_output(), con_next_focused(), ewmh_update_wm_desktop(), find_drop_target(), floating_maybe_reassign_ws(), gaps_reapply_workspace_assignments(), gaps_update(), get_existing_workspace_by_name(), get_existing_workspace_by_num(), get_tree_next_workspace(), handle_button_press(), has_drop_targets(), init_ws_for_output(), IPC_HANDLER(), main(), move_content(), move_to_output_directed(), output_change_mode(), output_push_sticky_windows(), randr_query_outputs(), render_root(), route_click(), workspace_get(), workspace_move_to_output(), workspace_next(), workspace_next_on_output(), workspace_prev(), and workspace_prev_on_output().
char * output_primary_name | ( | Output * | output | ) |
Retrieves the primary name of an output.
Definition at line 53 of file output.c.
References SLIST_FIRST.
Referenced by canonicalize_output_name(), con_move_to_output(), fake_outputs_init(), get_output_next(), get_output_next_wrap(), get_tree_next_workspace(), handle_configure_request(), handle_output(), init_ws_for_output(), IPC_HANDLER(), main(), manage_window(), output_init_con(), query_screens(), randr_disable_output(), randr_query_outputs(), TAILQ_HEAD(), user_output_names_find_next(), and workspace_move_to_output().
void output_push_sticky_windows | ( | Con * | old_focus | ) |
Iterates over all outputs and pushes sticky windows to the currently visible workspace on that output.
old_focus is used to determine if a sticky window is going to be focused. old_focus might be different than the currently focused container because the caller might need to temporarily change the focus and then call output_push_sticky_windows. For example, workspace_show needs to set focus to one of its descendants first, then call output_push_sticky_windows that should focus a sticky window if it was the focused in the previous workspace.
Definition at line 83 of file output.c.
References con_activate(), con_descend_focused(), con_get_workspace(), con_is_sticky(), con_move_to_workspace(), croot, focused, GREP_FIRST, output_get_content(), Con::parent, TAILQ_END, TAILQ_FIRST, TAILQ_FOREACH, TAILQ_NEXT, Con::type, and workspace_is_visible().
Referenced by cmd_sticky(), handle_client_message(), handle_net_wm_state_change(), manage_window(), and workspace_show().