diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2016-06-11 12:43:34 -0500 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2016-06-11 12:43:34 -0500 |
| commit | 2e30f67f7268dcbeeb5e0383f36e54726f32355b (patch) | |
| tree | d1b4fb33848d09c71602005c57919a903ce3d72d /include/config.h | |
| parent | 3f53406336f5f36d4e73a0573633aa2ba8b68932 (diff) | |
cleanup + add timeouts for pid_workspace list
Diffstat (limited to 'include/config.h')
| -rw-r--r-- | include/config.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h index 35797ac2..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" @@ -95,8 +98,10 @@ struct workspace_output { 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 { |
