~kris/suckless

tabbed

ref: b4fed5a100f2fe50cb7caa33e6d58edebe1e7f80 tabbed/tabbed.c -rw-r--r-- 28.1 KiB
b4fed5a1 — Peter Hofmann 12 years ago
Clear urgency hint on sel == c

 - 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>
9d1d6d94 — noname 12 years ago
Replace emallocz with ecalloc.

Signed-off-by: Christoph Lohmann <20h@r-36.net>
c778de59 — Markus Teich 12 years ago
add urgent color cmdline options

Signed-off-by: Christoph Lohmann <20h@r-36.net>
5dd3d19e — Markus Teich 12 years ago
support urgency wm hints

Signed-off-by: Christoph Lohmann <20h@r-36.net>
030eda81 — Christoph Lohmann 12 years ago
Simplifying the lastsel handling a bit.

Some checks and comments were removed to simplify the function.
4ed0a2da — Christoph Lohmann 12 years ago
The check for a minimal new lastsel is not needed anymore.
4b2dfb11 — Christoph Lohmann 12 years ago
Applying the client sel handling of quinq.

When after unmanaging the the last selected client was unmanaged, select the
last client.
0120447e — Markus Teich 12 years ago
update years in copyright notices

Signed-off-by: Christoph Lohmann <20h@r-36.net>
7a152351 — Christoph Lohmann 12 years ago
Adding conforming documentation of the commandline color support.
0214014f — Gregor Best 12 years ago
Fix crash on client termination

Signed-off-by: Gregor Best <gbe@ring0.de>
Signed-off-by: Christoph Lohmann <20h@r-36.net>
e68297ed — Markus Teich 12 years ago
Allow selecting the colors on command line.

Signed-off-by: Christoph Lohmann <20h@r-36.net>
a1aa453e — Markus Teich 12 years ago
select or open new tab with Ctrl-T

The default config will display all open tabs in dmenu. You can either select
one of them, or if you enter a string, that does not start with „0x“, tabbed
will open a new tab and run the command specified at tabbed-startup but append
the entered string to the command first.

With
tabbed -r 2 surf -e ''
you can hit Ctrl-T and either select an already opened tab or enter an URL,
which will be opened in a new tab with surf.

Signed-off-by: Christoph Lohmann <20h@r-36.net>
b46a3a27 — Christoph Lohmann 12 years ago
Revert "select tab with X ClientMessage event"

This reverts commit 34baef933d0bba6dad20e1b9f24878b63756e443.
34baef93 — Markus Teich 12 years ago
select tab with X ClientMessage event

Signed-off-by: Christoph Lohmann <20h@r-36.net>
14beaabe — Alexander Sedov 13 years ago
Fixed obscure miscalculation when a client is closed.

This crops up whenever you just switched from tab # N+1 to tab # N
and close current tab. unmanage() first decreases lastsel
(so it becomes N) then erroneously tests it against sel and focuses first tab
instead. One can see that focus() would never set lastsel == sel,
so I took liberty to fix this annoying behaviour which happens to frequently
with newposition = 0 and npisrelative = True settings.

Signed-off-by: Christoph Lohmann <20h@r-36.net>
9b007101 — Christoph Lohmann 13 years ago
Adding a geometry flag to tabbed.

Thanks for the hint Thorsten Glaser!
97ce0f71 — Gregor Best 13 years ago
Don't set cmd[0] to the window ID

Ahoy,

the attached patch fixes a tiny issue with tabbed. When running it
without a command and having it run spawn(), it tried to execute its
window ID as a command. While most people probably don't have
executables called 341123 or the like in their path, I think that is not
exactly intended. The following patch fixes that:

From c7ade36f8ef6429546ad89bc9ab479fa44c4790a Mon Sep 17 00:00:00 2001
From: Gregor Best <gbe@ring0.de>
Date: Sun, 7 Jul 2013 20:36:06 +0200
Subject: [PATCH] Don't set cmd[0] to the window ID

Starting tabbed without a command sets cmd[0] to the window ID of
tabbed. This leads to funky errors such as "execvp: <ID> failed: no such
file or directory" when running spawn().

Signed-off-by: Gregor Best <gbe@ring0.de>
Signed-off-by: Christoph Lohmann <20h@r-36.net>
eebaedf3 — Christoph Lohmann 13 years ago
Applying a fix for tab rotation.

Thanks "Oleg O. Chukaev" <oleg.chukaev@mail.ru>!
7cb38e81 — Christoph Lohmann 13 years ago
Fix issue with clicks on the tabbed border.

Thanks David Dufberg Tøttrup <david@dufberg.se>!
2db44155 — Christoph Lohmann 13 years ago
Making tabbed convert the title string to native.

Thanks "Markus Wichmann" <nullplan@gmx.net>!
Next