summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar Zandr Martin <zandrmartin+git@gmail.com>2016-06-11 12:43:34 -0500
committerLibravatar Zandr Martin <zandrmartin+git@gmail.com>2016-06-11 12:43:34 -0500
commit2298143d09ce8810d9772f95e1cb605fb6b08536 (patch)
treed1b4fb33848d09c71602005c57919a903ce3d72d /include
parentMerge branch 'master' into assign-command (diff)
downloadsway-2298143d09ce8810d9772f95e1cb605fb6b08536.tar.gz
sway-2298143d09ce8810d9772f95e1cb605fb6b08536.tar.zst
sway-2298143d09ce8810d9772f95e1cb605fb6b08536.zip
cleanup + add timeouts for pid_workspace list
Diffstat (limited to 'include')
-rw-r--r--include/config.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h
index 35797ac2..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"
@@ -95,8 +98,10 @@ struct workspace_output {
95struct pid_workspace { 98struct pid_workspace {
96 pid_t *pid; 99 pid_t *pid;
97 char *workspace; 100 char *workspace;
101 time_t *time_added;
98}; 102};
99 103
104void pid_workspace_add(struct pid_workspace *pw);
100void free_pid_workspace(struct pid_workspace *pw); 105void free_pid_workspace(struct pid_workspace *pw);
101 106
102struct bar_config { 107struct bar_config {