spmenu/libs/mode.c

11 lines
161 B
C

void
switchmode(const Arg *arg)
{
curMode = !curMode;
allowkeys = !curMode;
strncpy(modetext, curMode ? instext : normtext, 15);
drawmenu();
}