~brown121407/dwm

0ff301a056ec75a862f8d950eefbfe869abb4723 — Alexandru-Sergiu Marton 1 year, 23 days ago 3caf63f
Add actualfullscreen patch.
2 files changed, 10 insertions(+), 1 deletions(-)

M config.def.h
M dwm.c
M config.def.h => config.def.h +2 -1
@@ 50,7 50,7 @@ static const Layout layouts[] = {
};

/* key definitions */
#define MODKEY Mod1Mask
#define MODKEY Mod4Mask
#define TAGKEYS(KEY,TAG) \
	{ MODKEY,                       KEY,      view,           {.ui = 1 << TAG} }, \
	{ MODKEY|ControlMask,           KEY,      toggleview,     {.ui = 1 << TAG} }, \


@@ 92,6 92,7 @@ static Key keys[] = {
	{ MODKEY,                       XK_m,      setlayout,      {.v = &layouts[2]} },
	{ MODKEY,                       XK_space,  setlayout,      {0} },
	{ MODKEY|ShiftMask,             XK_space,  togglefloating, {0} },
	{ MODKEY|ShiftMask,             XK_f,      togglefullscr,  {0} },
	{ MODKEY,                       XK_0,      view,           {.ui = ~0 } },
	{ MODKEY|ShiftMask,             XK_0,      tag,            {.ui = ~0 } },
	{ MODKEY,                       XK_comma,  focusmon,       {.i = -1 } },

M dwm.c => dwm.c +8 -0
@@ 228,6 228,7 @@ static void tagmon(const Arg *arg);
static void tile(Monitor *);
static void togglebar(const Arg *arg);
static void togglefloating(const Arg *arg);
static void togglefullscr(const Arg *arg);
static void toggletag(const Arg *arg);
static void toggleview(const Arg *arg);
static void unfocus(Client *c, int setfocus);


@@ 1862,6 1863,13 @@ togglefloating(const Arg *arg)
}

void
togglefullscr(const Arg *arg)
{
  if(selmon->sel)
	setfullscreen(selmon->sel, !selmon->sel->isfullscreen);
}

void
toggletag(const Arg *arg)
{
	unsigned int newtags;