Rework Makefile to better fit tcc, remove condition tcc does not support
This commit is contained in:
parent
d79c85fbfb
commit
3c19c2429c
2
Makefile
2
Makefile
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue