diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/config.h | 11 | ||||
-rw-r--r-- | include/sway/tree/workspace.h | 4 |
2 files changed, 4 insertions, 11 deletions
diff --git a/include/sway/config.h b/include/sway/config.h index b8da29c5..9d2e1bf9 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> |
@@ -146,12 +145,6 @@ struct workspace_output { | |||
146 | char *workspace; | 145 | char *workspace; |
147 | }; | 146 | }; |
148 | 147 | ||
149 | struct pid_workspace { | ||
150 | pid_t *pid; | ||
151 | char *workspace; | ||
152 | time_t *time_added; | ||
153 | }; | ||
154 | |||
155 | struct bar_config { | 148 | struct bar_config { |
156 | /** | 149 | /** |
157 | * One of "dock", "hide", "invisible" | 150 | * One of "dock", "hide", "invisible" |
@@ -302,7 +295,6 @@ struct sway_config { | |||
302 | list_t *bars; | 295 | list_t *bars; |
303 | list_t *cmd_queue; | 296 | list_t *cmd_queue; |
304 | list_t *workspace_outputs; | 297 | list_t *workspace_outputs; |
305 | list_t *pid_workspaces; | ||
306 | list_t *output_configs; | 298 | list_t *output_configs; |
307 | list_t *input_configs; | 299 | list_t *input_configs; |
308 | list_t *seat_configs; | 300 | list_t *seat_configs; |
@@ -388,9 +380,6 @@ struct sway_config { | |||
388 | } handler_context; | 380 | } handler_context; |
389 | }; | 381 | }; |
390 | 382 | ||
391 | void pid_workspace_add(struct pid_workspace *pw); | ||
392 | void free_pid_workspace(struct pid_workspace *pw); | ||
393 | |||
394 | /** | 383 | /** |
395 | * Loads the main config from the given path. is_active should be true when | 384 | * Loads the main config from the given path. is_active should be true when |
396 | * reloading the config. | 385 | * reloading the config. |
diff --git a/include/sway/tree/workspace.h b/include/sway/tree/workspace.h index bc95317a..ff66da6b 100644 --- a/include/sway/tree/workspace.h +++ b/include/sway/tree/workspace.h | |||
@@ -44,6 +44,10 @@ void workspace_output_add_priority(struct sway_container *workspace, | |||
44 | struct sway_container *workspace_output_get_highest_available( | 44 | struct sway_container *workspace_output_get_highest_available( |
45 | struct sway_container *ws, struct sway_container *exclude); | 45 | struct sway_container *ws, struct sway_container *exclude); |
46 | 46 | ||
47 | struct sway_container *workspace_for_pid(pid_t pid); | ||
48 | |||
49 | void workspace_record_pid(pid_t pid); | ||
50 | |||
47 | void workspace_detect_urgent(struct sway_container *workspace); | 51 | void workspace_detect_urgent(struct sway_container *workspace); |
48 | 52 | ||
49 | #endif | 53 | #endif |