i3
Functions
scratchpad.c File Reference
#include "all.h"
Include dependency graph for scratchpad.c:

Go to the source code of this file.

Functions

void scratchpad_move (Con *con)
 Moves the specified window to the __i3_scratch workspace, making it floating and setting the appropriate scratchpad_state.
void scratchpad_show (Con *con)
 Either shows the top-most scratchpad window (con == NULL) or shows the specified con (if it is scratchpad window).

Function Documentation

void scratchpad_move ( Con con)

Moves the specified window to the __i3_scratch workspace, making it floating and setting the appropriate scratchpad_state.

Gets called upon the command 'move scratchpad'.

Definition at line 19 of file scratchpad.c.

References con_focus(), con_get_workspace(), con_move_to_workspace(), con_next_focused(), DLOG, floating_enable(), focused, LOG, Con::name, Con::parent, scratchpad_move(), Con::scratchpad_state, TAILQ_FIRST, TAILQ_NEXT, Con::type, and workspace_get().

Referenced by cmd_move_scratchpad(), scratchpad_move(), and scratchpad_show().

Here is the call graph for this function:

void scratchpad_show ( Con con)

Either shows the top-most scratchpad window (con == NULL) or shows the specified con (if it is scratchpad window).

When called with con == NULL and the currently focused window is a scratchpad window, this serves as a shortcut to hide it again (so the user can press the same key to quickly look something up).

Definition at line 73 of file scratchpad.c.

References con_descend_focused(), con_focus(), con_get_output(), con_get_workspace(), con_inside_floating(), con_move_to_workspace(), DLOG, focused, Rect::height, LOG, callback_params::output, Con::rect, scratchpad_move(), Con::scratchpad_state, TAILQ_FIRST, Rect::width, workspace_get(), workspace_show(), Rect::x, and Rect::y.

Referenced by cmd_scratchpad_show().

Here is the call graph for this function: