aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/sway/config.h11
-rw-r--r--include/sway/tree/workspace.h4
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
149struct pid_workspace {
150 pid_t *pid;
151 char *workspace;
152 time_t *time_added;
153};
154
155struct bar_config { 148struct 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
391void pid_workspace_add(struct pid_workspace *pw);
392void 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,
44struct sway_container *workspace_output_get_highest_available( 44struct 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
47struct sway_container *workspace_for_pid(pid_t pid);
48
49void workspace_record_pid(pid_t pid);
50
47void workspace_detect_urgent(struct sway_container *workspace); 51void workspace_detect_urgent(struct sway_container *workspace);
48 52
49#endif 53#endif