Replaced flextile with flextile-deluxe, refactored monitor rules to support predetermined layouts per tag
This commit is contained in:
@ -1,13 +1,15 @@
|
||||
static int combo = 0;
|
||||
|
||||
void
|
||||
keyrelease(XEvent *e) {
|
||||
keyrelease(XEvent *e)
|
||||
{
|
||||
combo = 0;
|
||||
}
|
||||
|
||||
void
|
||||
combotag(const Arg *arg) {
|
||||
if(selmon->sel && arg->ui & TAGMASK) {
|
||||
combotag(const Arg *arg)
|
||||
{
|
||||
if (selmon->sel && arg->ui & TAGMASK) {
|
||||
if (combo) {
|
||||
selmon->sel->tags |= arg->ui & TAGMASK;
|
||||
} else {
|
||||
@ -20,15 +22,21 @@ combotag(const Arg *arg) {
|
||||
}
|
||||
|
||||
void
|
||||
comboview(const Arg *arg) {
|
||||
comboview(const Arg *arg)
|
||||
{
|
||||
unsigned newtags = arg->ui & TAGMASK;
|
||||
if (combo) {
|
||||
selmon->tagset[selmon->seltags] |= newtags;
|
||||
} else {
|
||||
selmon->seltags ^= 1; /*toggle tagset*/
|
||||
combo = 1;
|
||||
if (newtags)
|
||||
if (newtags) {
|
||||
#if PERTAG_PATCH
|
||||
pertagview(&((Arg) { .ui = newtags }));
|
||||
#else
|
||||
selmon->tagset[selmon->seltags] = newtags;
|
||||
#endif // PERTAG_PATCH
|
||||
}
|
||||
}
|
||||
focus(NULL);
|
||||
arrange(selmon);
|
||||
|
Reference in New Issue
Block a user