Introduction
Introduction Statistics Contact Development Disclaimer Help
st-newterm-0.9-tabbed.diff - sites - public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log
Files
Refs
---
st-newterm-0.9-tabbed.diff (936B)
---
1 From 88559b5cb6ed3f996fc00e923f9ded3c0b353fc5 Mon Sep 17 00:00:00 2001
2 From: meator <[email protected]>
3 Date: Wed, 26 Oct 2022 14:06:49 +0200
4 Subject: [PATCH] Make newterm work with the tabbed patch
5
6 This commit is an updated version of st-newterm-0.8.2-tabbed.diff.
7 ---
8 st.c | 7 ++++++-
9 1 file changed, 6 insertions(+), 1 deletion(-)
10
11 diff --git a/st.c b/st.c
12 index 0261283..e4a9021 100644
13 --- a/st.c
14 +++ b/st.c
15 @@ -1061,6 +1061,7 @@ tswapscreen(void)
16 void
17 newterm(const Arg* a)
18 {
19 + char *tabbed_win;
20 switch (fork()) {
21 case -1:
22 die("fork failed: %s\n", strerror(errno));
23 @@ -1073,7 +1074,11 @@ newterm(const Arg* a)
24 break;
25 case 0:
26 chdir_by_pid(pid);
27 - execl("/proc/self/exe", argv0, NULL);
28 + tabbed_win = getenv("XEMBED");
29 + if (tabbed_win)
30 + execl("/proc/self/exe", argv0, "-w", ta…
31 + else
32 + execl("/proc/self/exe", argv0, NULL);
33 _exit(1);
34 break;
35 default:
36 --
37 2.38.0
38
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.