Rework Makefile to better fit tcc, remove condition tcc does not support

This commit is contained in:
speediegq 2022-10-08 23:07:54 +02:00
parent d79c85fbfb
commit 3c19c2429c
2 changed files with 3 additions and 4 deletions

View file

@ -28,7 +28,7 @@ options:
${OBJ}: options.mk
speedwm: ${OBJ}
${CC} -o $@ ${OBJ} ${LDFLAGS} ; rm -f *.o
${CC} -o $@ ${OBJ} ${LDFLAGS}
ifdef USEIPC
speedwm-msg: toggle/ipc-speedwm-msg.o

View file

@ -4820,7 +4820,7 @@ tagmon(const Arg *arg)
void
viewtoleft(const Arg *arg) {
if(__builtin_popcount(selmon->tagset[selmon->seltags] & TAGMASK) == 1
if(selmon->tagset[selmon->seltags] & TAGMASK == 1
&& selmon->tagset[selmon->seltags] > 1) {
selmon->seltags ^= 1; /* toggle sel tagset */
selmon->tagset[selmon->seltags] = selmon->tagset[selmon->seltags ^ 1] >> 1;
@ -4831,8 +4831,7 @@ viewtoleft(const Arg *arg) {
void
viewtoright(const Arg *arg) {
if(__builtin_popcount(selmon->tagset[selmon->seltags] & TAGMASK) == 1
&& selmon->tagset[selmon->seltags] & (TAGMASK >> 1)) {
if(selmon->tagset[selmon->seltags] & TAGMASK == 1 && selmon->tagset[selmon->seltags] & TAGMASK >> 1) {
selmon->seltags ^= 1; /* toggle sel tagset */
selmon->tagset[selmon->seltags] = selmon->tagset[selmon->seltags ^ 1] << 1;
focus(NULL);