add xembed wrapper utility
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 initialized
Signed-off-by: Christoph Lohmann <20h@r-36.net>
My libc wants _DEFAULT_SOURCE.
revise drawbar and related mechanisms.
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 switching
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 patch
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 == 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>
Replace emallocz with ecalloc.
Signed-off-by: Christoph Lohmann <20h@r-36.net>
add urgent color cmdline options
Signed-off-by: Christoph Lohmann <20h@r-36.net>
support urgency wm hints
Signed-off-by: Christoph Lohmann <20h@r-36.net>
Simplifying the lastsel handling a bit.
Some checks and comments were removed to simplify the function.
The check for a minimal new lastsel is not needed anymore.
Applying the client sel handling of quinq.
When after unmanaging the the last selected client was unmanaged, select the
last client.
update years in copyright notices
Signed-off-by: Christoph Lohmann <20h@r-36.net>
Adding conforming documentation of the commandline color support.
Fix crash on client termination
Signed-off-by: Gregor Best <gbe@ring0.de>
Signed-off-by: Christoph Lohmann <20h@r-36.net>
Allow selecting the colors on command line.
Signed-off-by: Christoph Lohmann <20h@r-36.net>
Document the new ctrl+t feature.
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>