aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2017-04-26 10:26:46 -0700
committerJoe Wilm <jwilm@users.noreply.github.com>2017-05-01 08:36:09 -0700
commit574586045f08307b310983ed713972d0b6a45c30 (patch)
tree0419c4d54ca292c06e6411979a40e8a26e029ca7 /src/lib.rs
parent09031decc0510c107804aea490e437176bbb3535 (diff)
downloadalacritty-574586045f08307b310983ed713972d0b6a45c30.tar.gz
alacritty-574586045f08307b310983ed713972d0b6a45c30.zip
Support setting _NET_WM_PID in X11 environments
Support is added for setting _NET_WM_PID automatically. This is to support scripting of the window environment. For example, this makes it possible to script opening a window with same CWD: 1. Retrieve the current window 2. (new) get PID of window 3. Check if it's Alacritty, find first child (presumably a shell), and get the child's cwd. 4. Spawn new instance of terminal with cwd. Unaddressed in this commit is how this will coexist on a Wayland system.
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index be4cae33..0a3366ce 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -27,6 +27,9 @@
#[macro_use] extern crate log;
#[macro_use] extern crate serde_derive;
+#[cfg(any(target_os = "linux", target_os = "freebsd", target_os="dragonfly", target_os="openbsd"))]
+extern crate x11_dl;
+
extern crate cgmath;
extern crate copypasta;
extern crate errno;