On Sat, May 23, 2015, at 01:56 PM, Ross Mohn wrote:
> Getting new windows and un minimized windows to go on the stack instead
> of taking over the master window is pretty easy. Having them go to the
> end I'll have to think about a little more. Here's an easy solution that
> makes them go to the top of the stack instead of to the master.
> (Definitely NOT fully tested, and also I don't really endorse this as a
> use case!)
>
> Put these two lines in the "commands for use by keybindings"
> section in dvtm.c:
> static void createonstack(const char *args[]);
> static void toggleminimizeonstack(const char *args[]);
>
> The put these two functions lower down in dvtm.c:
> static void
> createonstack(const char *args[]) {
> create(NULL);
> zoom(NULL);
> }
>
> static void
> toggleminimizeonstack(const char *args[]) {
> if (sel->minimized) {
> toggleminimize(NULL);
> zoom(NULL);
> } else
> toggleminimize(NULL);
> }
>
> Finally, replace the 'c' and '.' commands in config.h:
> { { MOD, 'c', }, { createonstack, { NULL } } },
> { { MOD, '.', }, { toggleminimizeonstack, { NULL } } },
Thank you for this code. I tested it, and it doesn't work properly. I
still appreciate your collaborating with me on this issue. I'll be
submitting a tested patch next.
--
http://www.fastmail.com - The way an email service should be
Received on Tue May 26 2015 - 17:54:04 CEST