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 @@ | |||
1 | #ifndef _SWAY_CONFIG_H | 1 | #ifndef _SWAY_CONFIG_H |
2 | #define _SWAY_CONFIG_H | 2 | #define _SWAY_CONFIG_H |
3 | 3 | ||
4 | #define PID_WORKSPACE_TIMEOUT 60 | ||
5 | |||
4 | #include <libinput.h> | 6 | #include <libinput.h> |
5 | #include <stdint.h> | 7 | #include <stdint.h> |
6 | #include <wlc/geometry.h> | 8 | #include <wlc/geometry.h> |
7 | #include <wlc/wlc.h> | 9 | #include <wlc/wlc.h> |
8 | #include <xkbcommon/xkbcommon.h> | 10 | #include <xkbcommon/xkbcommon.h> |
11 | #include <time.h> | ||
9 | #include "wayland-desktop-shell-server-protocol.h" | 12 | #include "wayland-desktop-shell-server-protocol.h" |
10 | #include "list.h" | 13 | #include "list.h" |
11 | #include "layout.h" | 14 | #include "layout.h" |
@@ -92,6 +95,15 @@ struct workspace_output { | |||
92 | char *workspace; | 95 | char *workspace; |
93 | }; | 96 | }; |
94 | 97 | ||
98 | struct pid_workspace { | ||
99 | pid_t *pid; | ||
100 | char *workspace; | ||
101 | time_t *time_added; | ||
102 | }; | ||
103 | |||
104 | void pid_workspace_add(struct pid_workspace *pw); | ||
105 | void free_pid_workspace(struct pid_workspace *pw); | ||
106 | |||
95 | struct bar_config { | 107 | struct bar_config { |
96 | /** | 108 | /** |
97 | * One of "dock", "hide", "invisible" | 109 | * One of "dock", "hide", "invisible" |
@@ -175,6 +187,7 @@ struct sway_config { | |||
175 | list_t *bars; | 187 | list_t *bars; |
176 | list_t *cmd_queue; | 188 | list_t *cmd_queue; |
177 | list_t *workspace_outputs; | 189 | list_t *workspace_outputs; |
190 | list_t *pid_workspaces; | ||
178 | list_t *output_configs; | 191 | list_t *output_configs; |
179 | list_t *input_configs; | 192 | list_t *input_configs; |
180 | list_t *criteria; | 193 | list_t *criteria; |