aboutsummaryrefslogtreecommitdiff
path: root/include/sway
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-07-24 14:44:01 -0400
committerGitHub <noreply@github.com>2018-07-24 14:44:01 -0400
commit817d37c95032946a2e508fcc33cfa5c7ed65cc0d (patch)
tree69fb79348eaff481fabaee4c2bb25991487d438b /include/sway
parent347f7cb4c1edb3c4a6c38ffb3f9dcdd98f37e475 (diff)
parentc80258c3b394781c42cd4f2c161c705b2558c485 (diff)
downloadsway-817d37c95032946a2e508fcc33cfa5c7ed65cc0d.tar.xz
Merge pull request #2165 from swaywm/pid-workspaces
Implement pid->workspace tracking
Diffstat (limited to 'include/sway')
-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 bcd503a4..032f4196 100644
--- a/include/sway/config.h
+++ b/include/sway/config.h
@@ -1,6 +1,5 @@
#ifndef _SWAY_CONFIG_H
#define _SWAY_CONFIG_H
-#define PID_WORKSPACE_TIMEOUT 60
#include <libinput.h>
#include <stdint.h>
#include <string.h>
@@ -161,12 +160,6 @@ struct workspace_output {
char *workspace;
};
-struct pid_workspace {
- pid_t *pid;
- char *workspace;
- time_t *time_added;
-};
-
struct bar_config {
/**
* One of "dock", "hide", "invisible"
@@ -317,7 +310,6 @@ struct sway_config {
list_t *bars;
list_t *cmd_queue;
list_t *workspace_outputs;
- list_t *pid_workspaces;
list_t *output_configs;
list_t *input_configs;
list_t *seat_configs;
@@ -403,9 +395,6 @@ struct sway_config {
} handler_context;
};
-void pid_workspace_add(struct pid_workspace *pw);
-void free_pid_workspace(struct pid_workspace *pw);
-
/**
* Loads the main config from the given path. is_active should be true when
* 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,
struct sway_container *workspace_output_get_highest_available(
struct sway_container *ws, struct sway_container *exclude);
+struct sway_container *workspace_for_pid(pid_t pid);
+
+void workspace_record_pid(pid_t pid);
+
void workspace_detect_urgent(struct sway_container *workspace);
#endif