diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/config.h | 11 | ||||
-rw-r--r-- | include/sway/tree/workspace.h | 5 |
2 files changed, 5 insertions, 11 deletions
diff --git a/include/sway/config.h b/include/sway/config.h index e75b0664..9b583323 100644 --- a/include/sway/config.h +++ b/include/sway/config.h | |||
@@ -1,6 +1,5 @@ | |||
1 | #ifndef _SWAY_CONFIG_H | 1 | #ifndef _SWAY_CONFIG_H |
2 | #define _SWAY_CONFIG_H | 2 | #define _SWAY_CONFIG_H |
3 | #define PID_WORKSPACE_TIMEOUT 60 | ||
4 | #include <libinput.h> | 3 | #include <libinput.h> |
5 | #include <stdint.h> | 4 | #include <stdint.h> |
6 | #include <string.h> | 5 | #include <string.h> |
@@ -143,12 +142,6 @@ struct workspace_output { | |||
143 | char *workspace; | 142 | char *workspace; |
144 | }; | 143 | }; |
145 | 144 | ||
146 | struct pid_workspace { | ||
147 | pid_t *pid; | ||
148 | char *workspace; | ||
149 | time_t *time_added; | ||
150 | }; | ||
151 | |||
152 | struct bar_config { | 145 | struct bar_config { |
153 | /** | 146 | /** |
154 | * One of "dock", "hide", "invisible" | 147 | * One of "dock", "hide", "invisible" |
@@ -300,7 +293,6 @@ struct sway_config { | |||
300 | list_t *bars; | 293 | list_t *bars; |
301 | list_t *cmd_queue; | 294 | list_t *cmd_queue; |
302 | list_t *workspace_outputs; | 295 | list_t *workspace_outputs; |
303 | list_t *pid_workspaces; | ||
304 | list_t *output_configs; | 296 | list_t *output_configs; |
305 | list_t *input_configs; | 297 | list_t *input_configs; |
306 | list_t *seat_configs; | 298 | list_t *seat_configs; |
@@ -384,9 +376,6 @@ struct sway_config { | |||
384 | } handler_context; | 376 | } handler_context; |
385 | }; | 377 | }; |
386 | 378 | ||
387 | void pid_workspace_add(struct pid_workspace *pw); | ||
388 | void free_pid_workspace(struct pid_workspace *pw); | ||
389 | |||
390 | /** | 379 | /** |
391 | * Loads the main config from the given path. is_active should be true when | 380 | * Loads the main config from the given path. is_active should be true when |
392 | * reloading the config. | 381 | * reloading the config. |
diff --git a/include/sway/tree/workspace.h b/include/sway/tree/workspace.h index c72a4ac0..d84e4a02 100644 --- a/include/sway/tree/workspace.h +++ b/include/sway/tree/workspace.h | |||
@@ -42,4 +42,9 @@ void workspace_output_add_priority(struct sway_container *workspace, | |||
42 | 42 | ||
43 | struct sway_container *workspace_output_get_highest_available( | 43 | struct sway_container *workspace_output_get_highest_available( |
44 | struct sway_container *ws, struct sway_container *exclude); | 44 | struct sway_container *ws, struct sway_container *exclude); |
45 | |||
46 | struct sway_container *workspace_for_pid(pid_t pid); | ||
47 | |||
48 | void workspace_record_pid(pid_t pid); | ||
49 | |||
45 | #endif | 50 | #endif |