swayfx/include/sway/scratchpad.h
Ryan Dwyer 81e8f31cc6 Implement scratchpad
Implements the following commands:

* move scratchpad
* scratchpad show
* [criteria] scratchpad show

Also fixes these:

* Fix memory leak when executing command with criteria
(use `list_free(views)` instead of `free(views)`)
* Fix crash when running `move to` with no further arguments
2018-07-23 08:24:32 +10:00

27 lines
537 B
C

#ifndef _SWAY_SCRATCHPAD_H
#define _SWAY_SCRATCHPAD_H
#include "tree/container.h"
/**
* Move a container to the scratchpad.
*/
void scratchpad_add_container(struct sway_container *con);
/**
* Remove a container from the scratchpad.
*/
void scratchpad_remove_container(struct sway_container *con);
/**
* Show or hide the next container on the scratchpad.
*/
void scratchpad_toggle_auto(void);
/**
* Show or hide a specific container on the scratchpad.
*/
void scratchpad_toggle_container(struct sway_container *con);
#endif