spmenu/libs/mode.c

11 lines
156 B
C

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