|
|
@ -63,7 +63,8 @@ viewtoright(const Arg *arg)
|
|
|
|
void
|
|
|
|
void
|
|
|
|
tagandviewtoleft(const Arg *arg)
|
|
|
|
tagandviewtoleft(const Arg *arg)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (__builtin_popcount(selmon->tagset[selmon->seltags] & TAGMASK) == 1
|
|
|
|
if (selmon->sel != NULL
|
|
|
|
|
|
|
|
&& __builtin_popcount(selmon->tagset[selmon->seltags] & TAGMASK) == 1
|
|
|
|
&& selmon->tagset[selmon->seltags] > 1) {
|
|
|
|
&& selmon->tagset[selmon->seltags] > 1) {
|
|
|
|
selmon->sel->tags >>= 1;
|
|
|
|
selmon->sel->tags >>= 1;
|
|
|
|
selmon->seltags ^= 1; /* toggle sel tagset */
|
|
|
|
selmon->seltags ^= 1; /* toggle sel tagset */
|
|
|
@ -83,7 +84,8 @@ tagandviewtoleft(const Arg *arg)
|
|
|
|
void
|
|
|
|
void
|
|
|
|
tagandviewtoright(const Arg *arg)
|
|
|
|
tagandviewtoright(const Arg *arg)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (__builtin_popcount(selmon->tagset[selmon->seltags] & TAGMASK) == 1
|
|
|
|
if (selmon->sel != NULL
|
|
|
|
|
|
|
|
&& __builtin_popcount(selmon->tagset[selmon->seltags] & TAGMASK) == 1
|
|
|
|
&& selmon->tagset[selmon->seltags] & (TAGMASK >> 1)) {
|
|
|
|
&& selmon->tagset[selmon->seltags] & (TAGMASK >> 1)) {
|
|
|
|
selmon->sel->tags <<= 1;
|
|
|
|
selmon->sel->tags <<= 1;
|
|
|
|
selmon->seltags ^= 1; /* toggle sel tagset */
|
|
|
|
selmon->seltags ^= 1; /* toggle sel tagset */
|
|
|
|