diff options
Diffstat (limited to 'include/config.h')
-rw-r--r-- | include/config.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h index d591daf2..bf278ddb 100644 --- a/include/config.h +++ b/include/config.h @@ -1,11 +1,14 @@ #ifndef _SWAY_CONFIG_H #define _SWAY_CONFIG_H +#define PID_WORKSPACE_TIMEOUT 60 + #include <libinput.h> #include <stdint.h> #include <wlc/geometry.h> #include <wlc/wlc.h> #include <xkbcommon/xkbcommon.h> +#include <time.h> #include "wayland-desktop-shell-server-protocol.h" #include "list.h" #include "layout.h" @@ -92,6 +95,15 @@ struct workspace_output { char *workspace; }; +struct pid_workspace { + pid_t *pid; + char *workspace; + time_t *time_added; +}; + +void pid_workspace_add(struct pid_workspace *pw); +void free_pid_workspace(struct pid_workspace *pw); + struct bar_config { /** * One of "dock", "hide", "invisible" @@ -175,6 +187,7 @@ struct sway_config { list_t *bars; list_t *cmd_queue; list_t *workspace_outputs; + list_t *pid_workspaces; list_t *output_configs; list_t *input_configs; list_t *criteria; |