fixed attachbottom, I had applied it wrong

This commit is contained in:
joelchrono12 2023-01-13 11:02:14 -06:00
parent f64c7b2998
commit c993c9e032
Signed by: chrono
GPG Key ID: E23D9C7FA57497A6
3 changed files with 14 additions and 13 deletions

View File

@ -93,7 +93,7 @@ static const char *brightdown[] = { "brightnessctl", "set", "15-", NULL };
#include "shift-tools.c"
#include "movestack.c"
//#include "movestack.c"
#include "X11/XF86keysym.h"
static const Key keys[] = {
/* modifier key function argument */
@ -107,8 +107,8 @@ static const Key keys[] = {
{ MODKEY, XK_b, togglebar, {0} },
{ MODKEY, XK_j, focusstack, {.i = +1 } },
{ MODKEY, XK_k, focusstack, {.i = -1 } },
{ MODKEY|ShiftMask, XK_j, movestack, {.i = +1 } },
{ MODKEY|ShiftMask, XK_k, movestack, {.i = -1 } },
//{ MODKEY|ShiftMask, XK_j, movestack, {.i = +1 } },
//{ MODKEY|ShiftMask, XK_k, movestack, {.i = -1 } },
{ MODKEY, XK_i, incnmaster, {.i = +1 } },
{ MODKEY, XK_d, incnmaster, {.i = -1 } },
{ MODKEY, XK_h, setmfact, {.f = -0.05} },
@ -161,7 +161,7 @@ static const Button buttons[] = {
/* click event mask button function argument */
{ ClkTagBar, MODKEY, Button1, tag, {0} },
{ ClkTagBar, MODKEY, Button3, toggletag, {0} },
{ ClkWinTitle, 0, Button2, zoom, {0} },
//{ ClkWinTitle, 0, Button2, zoom, {0} },
{ ClkStatusText, 0, Button2, spawn, {.v = termcmd } },
{ ClkClientWin, MODKEY, Button1, movemouse, {0} },
{ ClkClientWin, MODKEY, Button2, togglefloating, {0} },

View File

@ -93,7 +93,7 @@ static const char *brightdown[] = { "brightnessctl", "set", "15-", NULL };
#include "shift-tools.c"
#include "movestack.c"
//#include "movestack.c"
#include "X11/XF86keysym.h"
static const Key keys[] = {
/* modifier key function argument */
@ -107,8 +107,8 @@ static const Key keys[] = {
{ MODKEY, XK_b, togglebar, {0} },
{ MODKEY, XK_j, focusstack, {.i = +1 } },
{ MODKEY, XK_k, focusstack, {.i = -1 } },
{ MODKEY|ShiftMask, XK_j, movestack, {.i = +1 } },
{ MODKEY|ShiftMask, XK_k, movestack, {.i = -1 } },
//{ MODKEY|ShiftMask, XK_j, movestack, {.i = +1 } },
//{ MODKEY|ShiftMask, XK_k, movestack, {.i = -1 } },
{ MODKEY, XK_i, incnmaster, {.i = +1 } },
{ MODKEY, XK_d, incnmaster, {.i = -1 } },
{ MODKEY, XK_h, setmfact, {.f = -0.05} },
@ -131,10 +131,10 @@ static const Key keys[] = {
{ MODKEY, XK_period, focusmon, {.i = +1 } },
{ MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },
{ MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
//{ MODKEY|ShiftMask, XK_h, setgaps, {.i = -5 } },
//{ MODKEY|ShiftMask, XK_l, setgaps, {.i = +5 } },
//{ MODKEY|ShiftMask, XK_minus, setgaps, {.i = GAP_RESET } },
//{ MODKEY|ShiftMask, XK_equal, setgaps, {.i = GAP_TOGGLE} },
{ MODKEY|ShiftMask, XK_h, setgaps, {.i = -5 } },
{ MODKEY|ShiftMask, XK_l, setgaps, {.i = +5 } },
{ MODKEY|ShiftMask, XK_minus, setgaps, {.i = GAP_RESET } },
{ MODKEY|ShiftMask, XK_equal, setgaps, {.i = GAP_TOGGLE} },
//{ MODKEY, XK_s, movecenter, {0} },
// CUSTOM USER PROGRAMS
{ MODKEY|ALTKEY, XK_k, spawn, {.v = rofipass } },
@ -161,7 +161,7 @@ static const Button buttons[] = {
/* click event mask button function argument */
{ ClkTagBar, MODKEY, Button1, tag, {0} },
{ ClkTagBar, MODKEY, Button3, toggletag, {0} },
{ ClkWinTitle, 0, Button2, zoom, {0} },
//{ ClkWinTitle, 0, Button2, zoom, {0} },
{ ClkStatusText, 0, Button2, spawn, {.v = termcmd } },
{ ClkClientWin, MODKEY, Button1, movemouse, {0} },
{ ClkClientWin, MODKEY, Button2, togglefloating, {0} },

3
dwm.c
View File

@ -1419,7 +1419,8 @@ void
pop(Client *c)
{
detach(c);
attachbottom(c);
attach(c);
/*attachbottom(c);*/
focus(c);
arrange(c->mon);
}