Commit graph

93 commits

Author SHA1 Message Date
Alexander Sedov 14beaabe6c 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>
2013-10-10 18:45:19 +02:00
Christoph Lohmann 9b007101f2 Adding a geometry flag to tabbed.
Thanks for the hint Thorsten Glaser!
2013-08-20 18:44:00 +02:00
Gregor Best 97ce0f717a 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>
2013-07-12 06:48:18 +02:00
Christoph Lohmann eebaedf3da Applying a fix for tab rotation.
Thanks "Oleg O. Chukaev" <oleg.chukaev@mail.ru>!
2013-05-28 23:07:26 +02:00
Christoph Lohmann 7cb38e81b5 Fix issue with clicks on the tabbed border.
Thanks David Dufberg Tøttrup <david@dufberg.se>!
2013-05-20 18:14:27 +02:00
Christoph Lohmann 2db4415524 Making tabbed convert the title string to native.
Thanks "Markus Wichmann" <nullplan@gmx.net>!
2013-01-16 18:33:50 +01:00
Christoph Lohmann 66021e959c Allowing xterm again to be run in tabbed.
Thanks "Oleg O. Chukaev" <oleg.chukaev@mail.ru> for reporting this!
2013-01-06 14:56:45 +01:00
Christoph Lohmann 82fdff0023 Fixing the position parameter and adding the documentation for it. 2012-12-26 00:02:50 +01:00
Christoph Lohmann a7d7358a2c Setting the XEMBED environment variable.
Thanks Kyle Kramer for the suggestion!
2012-12-25 23:50:21 +01:00
Christoph Lohmann 94add5a96d Adding an option to do relative new position. And fixing tab position.
Thanks Kyle Kramer for the suggestion!
2012-12-25 23:48:28 +01:00
Christoph Lohmann 39594f1935 Adding the -c option to close on last client close.
Thanks for the suggestion by Kyle Kramer!
2012-12-25 16:50:32 +01:00
Christoph Lohmann befbf40aad Just some change I always wanted to apply. 2012-12-07 20:45:28 +01:00
Christoph Lohmann 29c5878d4c Adding fullscreen mode to tabbed. 2012-12-03 21:28:02 +01:00
Christoph Lohmann e70d87e83b Removing that change. 2012-11-29 00:22:30 +01:00
Christoph Lohmann ceefb62bde A test, if this works. 2012-11-29 00:21:57 +01:00
Christoph Lohmann b293465ab8 Another small change to test the git e-mailing. 2012-11-28 23:30:09 +01:00
Christoph Lohmann 397ede184b A small change for a test. 2012-11-28 23:23:42 +01:00
Christoph Lohmann c342b209a2 Another small change to test the git interface. 2012-11-28 23:17:15 +01:00
Christoph Lohmann ffa2dbeb64 Correcting the lastsel handling in tabbed. It should be more predictable now. 2012-11-27 20:25:56 +01:00
Christoph Lohmann 5e1c53ad3c Add the -f flag, which tells tabbed to run the given command again, in case
the last tab is closed.
2012-11-26 14:55:26 +01:00
Christoph Lohmann 6f49796250 Changing the single-linked list for clients to a malloc()ed array. This makes
algorithms more efficient, that depend on the number of clients or shuffeling
around. The patch also adds new shortcuts to move tabs in their position. The
default color scheme is changed to the one of the maintainer.
2012-11-25 22:09:55 +01:00
Christoph Lohmann 719e5a97fe Avoid flashing of surf when it is run in tabbed. Thanks Carlos Pita! 2012-11-08 21:51:55 +01:00
Christoph Lohmann 380c783155 Allowing a different position for the window id. Thanks David Galos! 2012-11-08 21:48:51 +01:00
Christoph Lohmann 3f0067b1c7 Style inquistion was here. 2012-11-08 21:40:58 +01:00
Christoph Lohmann bcf3d90ce7 Fix the atom handling and fix the title setting. Thanks to Carlos Pita! 2012-10-13 06:57:32 +02:00
Christoph Lohmann ef13e0d92e Adding the -n name parameter to set WM_CLASS. Thanks Gavin Wahl
<gavinwahl@gmail.com>!
2012-10-03 07:56:53 +02:00
Christoph Lohmann 2d057ecf17 Test before commit. Correcting a typo. 2012-08-20 09:05:45 +02:00
Christoph Lohmann 03a03059bf Adding ed(1) compatibility. 2012-08-20 09:03:15 +02:00
Christoph Lohmann ce9b82147d Readding the spawn compatibility to use it in config.h. Thanks to Chris Hall. 2012-08-20 09:02:56 +02:00
Christoph Lohmann e3080747c5 Removing the warning about »XKeycodeToKeysym. 2012-07-07 22:50:26 +02:00
Christoph Lohmann 611c419c23 Happy new year 2012! 2012-04-06 20:45:07 +02:00
Christoph Lohmann b137773914 Introduce ARG* macros to simplify arg handling. 2012-04-06 20:44:47 +02:00
Christoph Lohmann 0808cda361 Enable easier tabbed handling with the xid. 2012-04-06 18:42:53 +02:00
Christoph Lohmann c6b1f05d15 Add '--' and concatenated parameter support. 2012-02-09 18:03:50 +01:00
Christoph Lohmann c79e339241 Allow no automatic spawning of the command. 2012-02-09 17:39:33 +01:00
Connor Lane Smith 3d12c416b8 display cmd info on tabbed-win 2011-11-20 17:38:48 +01:00
Connor Lane Smith a93dac2798 fix focus handling (thanks roman) 2011-09-26 22:39:59 +01:00
Connor Lane Smith 0a9c6d02e6 remove unused variable (thanks christoph) 2011-09-26 22:37:22 +01:00
Connor Lane Smith aea4a447d4 spawn on startup (thanks christoph) 2011-09-26 22:36:33 +01:00
Connor Lane Smith 62f0800d2f update manpage 2011-06-18 14:37:43 +01:00
Connor Lane Smith 214992a9ba added generic client support (thanks Stephen) 2011-05-06 21:40:53 +01:00
Connor Lane Smith d1716bda6b sanity patch 2010-08-09 11:59:13 +01:00
Enno Boland (tox) 4955efbafa XKill if windows won't close, cleanups. 2010-05-25 00:44:20 +02:00
Enno Boland (tox) 8b63e1219b removing XSetInputFocus() calls to be ICCCM compliant again. Thanks to Thomas Adam 2010-04-26 22:30:27 +02:00
Enno Boland (tox) 29bd306474 Some cleanups
I will recheck if these are really cleanups tomorrow. Too much coffein be sure right now.
2010-02-16 20:09:26 +01:00
Enno Boland (tox) e675961957 focus fix for openbox (and maybe a few others) 2010-02-16 19:56:22 +01:00
Enno Boland (tox) 13e3aca1cb improved focus handling 2010-02-16 19:53:03 +01:00
Enno Boland (tox) c6be3a7d9f tabbed remembers last viewed tab; open new tabs focused/unfocused can be configured now. 2009-12-15 09:26:01 +01:00
Enno Boland (tox) 2265312783 removing autoclose when last client exits. 2009-11-09 00:13:04 +01:00
Enno Boland (tox) 73579df0d7 closing tab with middlemouse, circling tabs with mousewheel. 2009-10-28 21:37:15 +01:00