summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Use UTF8_STRING instead of COMPOUND_TEXTMikhail Pchelin2025-01-19
| | | | | | | | | | | Using XCompoundTextStyle makes gnome-shell issue countless warnings in the message log when switching between tabs or selecting text: gnome-shell[5357]: Window manager warning: Window 0x800003 has property _NET_WM_NAME that was expected to have type UTF8_STRING format 8 and actually has type COMPOUND_TEXT format 8 n_items 0. This is most likely an application bug, not a window manager bug. The window has title="0:2:vim - "hostname" " class="tabbed" name="tabbed"
* bump version to 0.8Hiltjo Posthuma2024-03-19
|
* restore SIGCHLD sighandler to default before spawning a programHiltjo Posthuma2023-04-09
| | | | | | | | | | | | | 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.
* include X11/keysym.h: improve compatibility with older systemsHiltjo Posthuma2023-03-11
| | | | | | This matches dwm too. This makes it compile cleanly on a tested Slackware 11 system.
* fix: faulty zombie reapingNRK2023-03-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* remove config.mkHiltjo Posthuma2022-10-14
|
* Makefile: whoops add proper comment for OpenBSDHiltjo Posthuma2022-10-14
|
* Makefile improvementsHiltjo Posthuma2022-10-14
| | | | | | | | | | * 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
* Makefile: simplify and remove hiding the build processHiltjo Posthuma2022-10-12
|
* Makefile: add xembed.1 in the dist targetHiltjo Posthuma2022-10-12
|
* config.h: mark keys as constNRK2022-10-05
|
* bump version to 0.7Hiltjo Posthuma2022-10-04
|
* Fixed crash when window height was less or equal to bar heightmikau2020-05-30
| | | | | | | | 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.
* Add OpenBSD support to config.mkLucas Gabriel Vuotto2018-03-11
| | | | Signed-off-by: Lucas Gabriel Vuotto <lgv@nanashi.co>
* Embed dmenu in tabbed own windowLucas Gabriel Vuotto2018-03-11
| | | | Signed-off-by: Lucas Gabriel Vuotto <lgv@nanashi.co>
* Fix minor inconsistency in man pageAlessandro Caputo2017-09-29
|
* Fix movetab and focusurgent when there's no clientCaleb Malchik2017-05-08
| | | | Accessing those would crash with a floating point exception.
* Move tab selection keybinding from Ctrl-t to Ctrl-`Quentin Rameau2017-05-02
|
* One killclient() is enough.Christoph Lohmann2017-03-28
|
* The forgotten half of the last patch.Christoph Lohmann2016-04-25
|
* add -k to close tabbed foreground client on WMDeleteJustin Keogh2016-03-25
| | | | | | | | | | | | | | 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>
* Import the arg.h from st with the fixed oob bug.Christoph Lohmann2016-02-21
|
* Added xft supportLucas Gabriel Vuotto2016-02-18
| | | | | | | Based on xft tabbed patch from the wiki. Signed-off-by: Lucas Gabriel Vuotto <l.vuotto92@gmail.com> Signed-off-by: Christoph Lohmann <20h@r-36.net>
* Add configuration option for title truncation stringQuentin Rameau2016-01-04
| | | | | | | Permit to use arbitrary string instead of "..." (ie "$") when truncating client title. Signed-off-by: Christoph Lohmann <20h@r-36.net>
* Remove h flag, put usage() in the default caseQuentin Rameau2016-01-03
| | | | Signed-off-by: Christoph Lohmann <20h@r-36.net>
* Arrange diagnostic messagesQuentin Rameau2016-01-03
| | | | | | | Fix error messages to use argv0 instead of fixed “tabbed”. Break usage message into multiple lines. Signed-off-by: Christoph Lohmann <20h@r-36.net>
* Style cleanupQuentin Rameau2016-01-03
| | | | Signed-off-by: Christoph Lohmann <20h@r-36.net>
* Fix install paths and default build flagQuentin Rameau2016-01-03
| | | | | | | Ensure that paths are quoted. Compile with -Os by default. Signed-off-by: Christoph Lohmann <20h@r-36.net>
* Bumping up the year.Christoph Lohmann2016-01-03
| | | | Thanks for the bug report, FRIGN!
* Bump year.Christoph Lohmann2016-01-01
|
* autofocus urgent tabsJonas Rabenstein2015-08-19
| | | | | | | | | | | | | | | | When tabbed becomes urgent because one of it tabs becomes urgent, it may be desireable to automatically focus that tab. As a notification may be lost, if another notification comes in before you focused tabbed, the switch is only done, if tabbed is not urgent already. Moreover, it may be anoying, if you just type into one tab, another tab gets urgent -therfore focused- and you type into the other tab, you may switch between autofocus and nofocus using Ctrl-Shift-u. Maybe it would also be usefull, if there would be an commandline parameter to toggle that option, but as -u is already used for urgent-tab-color, i did not implement that. Signed-off-by: Jonas Rabenstein <jonas.rabenstein@studium.uni-erlangen.de> Signed-off-by: Christoph Lohmann <20h@r-36.net>
* focus urgent tabsJonas Rabenstein2015-08-19
| | | | | | | | | | | | | | | | | | With a lot of open tabs its quite annoying to toggle through all tabs until reaching the next one with an urgent hint set. Also with using Ctrl-[0..9] to get to the first 10 tabs, in some cases this may have disadvantages: 1. with more than 10 tabs, you can not use that quickselection 2. with a small tabbed window, you do not see every tab in the statusbar and therefore do not know which tab got urgent Therefore I created a function, which iterates over all currently managed tabs, focus the first urgent tab found or stays at the current tab, if there is no urgent-tab. By default, that function is mapped to Ctrl-u. Signed-off-by: Jonas Rabenstein <jonas.rabenstein@studium.uni-erlangen.de> Signed-off-by: Christoph Lohmann <20h@r-36.net>
* Fixing some manpage formatting and formatting in xembed.c.Christoph Lohmann2015-05-09
|
* add xembed wrapper utilityConnor Lane Smith2015-05-09
| | | | | | | | | xembed will cause a command to attempt to XEmbed into the window given by the environment variable XEMBED, so long as it is in the foreground of its controlling terminal. This causes a process to effectively take the place of the terminal window, unless it is backgrounded. Signed-off-by: Christoph Lohmann <20h@r-36.net>
* fix bug in unmanage: check if lastsel is initializedMarkus Teich2015-03-10
| | | | Signed-off-by: Christoph Lohmann <20h@r-36.net>
* My libc wants _DEFAULT_SOURCE.Christoph Lohmann2015-01-25
|
* revise drawbar and related mechanisms.Markus Teich2015-01-25
| | | | | | | This also fixes a bug, where the last tab was hidden and no "after" text was displayed. Signed-off-by: Christoph Lohmann <20h@r-36.net>
* movetab(): Move selected tab instead of switchingMarkus Teich2014-10-14
| | | | | | | | | | Before this patch, movetab() just switched positions of the selected tab with the new position. This resulted in unexpected behaviour when „moving“ a tab over one end of the list. Now tabs are moved correctly by the specified amount of indizes. Signed-off-by: Christoph Lohmann <20h@r-36.net>
* tabbed: UnmapNotify patchOkan Demirmen2014-09-13
| | | | | | | | | | | | | | | Hi, Simple patch for tabbed that prevents tabbed from killing a client that it should no longer be managing due to an UnmapNotify event. Add support for UnmapNotify; allows a window to map and unmap without needing it to be destroyed. Thanks, Okan Signed-off-by: Christoph Lohmann <20h@r-36.net>
* Clear urgency hint on sel == cPeter Hofmann2014-08-04
| | | | | | | | | | | | | | - Run "tabbed xterm -into". - Open a new tab using Ctrl+Shift+Enter, switch to it using Ctrl+Tab. - Run "sleep 2; printf '\a'". - Quickly change back to the first tab (c = 0) and wait for the second one (c = 1) to get the urgency hint. - Close the first tab using Ctrl+Q or Ctrl+D. This sets sel = 0 and c = 0, so focus() won't touch the urgency hint. - Now, the urgency hint on the second tab has not been cleared. Open a new tab to verify it. Signed-off-by: Christoph Lohmann <20h@r-36.net>
* Replace emallocz with ecalloc.noname2014-06-01
| | | | Signed-off-by: Christoph Lohmann <20h@r-36.net>
* add urgent color cmdline optionsMarkus Teich2014-05-19
| | | | Signed-off-by: Christoph Lohmann <20h@r-36.net>
* support urgency wm hintsMarkus Teich2014-05-19
| | | | Signed-off-by: Christoph Lohmann <20h@r-36.net>
* Simplifying the lastsel handling a bit.Christoph Lohmann2014-01-26
| | | | Some checks and comments were removed to simplify the function.
* The check for a minimal new lastsel is not needed anymore.Christoph Lohmann2014-01-26
|
* Applying the client sel handling of quinq.Christoph Lohmann2014-01-26
| | | | | When after unmanaging the the last selected client was unmanaged, select the last client.
* update years in copyright noticesMarkus Teich2014-01-22
| | | | Signed-off-by: Christoph Lohmann <20h@r-36.net>
* Adding conforming documentation of the commandline color support.Christoph Lohmann2014-01-21
|
* Release 0.6.Christoph Lohmann2014-01-21
|
* Fix crash on client terminationGregor Best2014-01-21
| | | | | Signed-off-by: Gregor Best <gbe@ring0.de> Signed-off-by: Christoph Lohmann <20h@r-36.net>