~kris/suckless

tabbed

97ba13b1 — Hiltjo Posthuma 3 years ago
restore SIGCHLD sighandler to default before spawning a program

From sigaction(2):
A child created via fork(2) inherits a copy of its parent's signal dispositions.
During an execve(2), the dispositions of handled signals are reset to the default;
the dispositions of ignored signals are left unchanged.

This refused to start directly some programs from configuring in config.h:

Some reported programs that didn't start were: mpv.

Similar to the commit e81f17d4c196aaed6893fd4beed49991caa3e2a4 from dwm.
66ef5f33 — Hiltjo Posthuma 3 years ago
include X11/keysym.h: improve compatibility with older systems

This matches dwm too.

This makes it compile cleanly on a tested Slackware 11 system.
fix: faulty zombie reaping

issues with the current signal handler:

1. die() isn't async-signal-safe
2. there's a race-window during reinstating the signal handler allowing
   zombies to be produced (should be rare in practice).
3. if waitpid fails, it will clobber the errno which can lead to
   undesired codepath being taken on the resuming code (this one can
   actually occur in practice).

to reproduce the 3rd issue:

	~> ./tabbed &
	[1] 20644
	0x1800003
	~> while :; do kill -s SIGCHLD 20644; done >&2 2>/dev/null
	XIO:  fatal IO error 10 (No child processes) on X server ":0"
	      after 47 requests (47 known processed) with 0 events remaining.
	[1]  + exit 1     ./tabbed

set the signal handler to SIG_IGN to reap zombies automatically
(according to POSIX.1-2001).

NOTE: this patch follows dwm's commit 712d663. according to the manpage,
none of the sa_flags being set are meaningful since we're using SIG_IGN.
they used to be meaningful on earlier version of the patch where it was
using SIG_DFL, i've kept them here just in case.
41e2b8f3 — Hiltjo Posthuma 3 years ago
remove config.mk
418899e7 — Hiltjo Posthuma 3 years ago
Makefile: whoops add proper comment for OpenBSD
deda1bb0 — Hiltjo Posthuma 3 years ago
Makefile improvements

* Respect system cflags, ldflags, packages can override them all with
  TABBED_{CFLAGS,LDFLAGS}. Remove -Wall and -Os and -s.
* Install README as documentation.
* dist: stream directly to a gzipped tarball.
* options: remove it.
* Add ".POSIX:"
* Remove config.mk
13f13ee5 — Hiltjo Posthuma 3 years ago
Makefile: simplify and remove hiding the build process
910e67db — Hiltjo Posthuma 3 years ago
Makefile: add xembed.1 in the dist target
config.h: mark keys as const
b372f9ce — Hiltjo Posthuma 3 years ago
bump version to 0.7
dabf6a25 — mikau 6 years ago
Fixed crash when window height was less or equal to bar height

When resizing, the embedded client is being resized to (height = wh - bh),
which is (<= 0) if (wh <= bh). This generates a BadValue Error leading to a
crash.  This patch fixes that by hiding the tab bar if the window height is too
small, and also sets a min_height WM hint to prevent that situation from
happening in the first place.
b5f9ec64 — Lucas Gabriel Vuotto 8 years ago
Add OpenBSD support to config.mk

Signed-off-by: Lucas Gabriel Vuotto <lgv@nanashi.co>
a327374a — Lucas Gabriel Vuotto 8 years ago
Embed dmenu in tabbed own window

Signed-off-by: Lucas Gabriel Vuotto <lgv@nanashi.co>
bbcdf154 — Alessandro Caputo 8 years ago
Fix minor inconsistency in man page
6dc3978e — Caleb Malchik 9 years ago
Fix movetab and focusurgent when there's no client

Accessing those would crash with a floating point exception.
05f583c5 — Quentin Rameau 9 years ago
Move tab selection keybinding from Ctrl-t to Ctrl-`
00c41432 — Christoph Lohmann 9 years ago
One killclient() is enough.
bc236142 — Christoph Lohmann 10 years ago
The forgotten half of the last patch.
95b46cd3 — Justin Keogh 10 years ago
add -k to close tabbed foreground client on WMDelete

Hello, this is useful when you want to use the same key binding that closes windows to close tabs. I got tired of loosing my tabbed/surf session when I hit my WM's close key. "Last tab" behavior still respects -c/-f.

Cheers
-J

From 829e95855f0fe78a368788a5e72231bd6456a8cf Mon Sep 17 00:00:00 2001
From: jakeogh <github.com@v6y.net>
Date: Mon, 21 Mar 2016 01:36:28 +0000
Subject: [PATCH] add -k to close foreground tabbed client on WM_DELETE_WINDOW

Signed-off-by: Christoph Lohmann <20h@r-36.net>
4ccaba49 — Christoph Lohmann 10 years ago
Import the arg.h from st with the fixed oob bug.
Next