optimize: change numlock var into server

This commit is contained in:
DreamMaoMao 2025-03-11 07:21:51 +08:00
parent aa54758e75
commit 4b7ef5287a
3 changed files with 3 additions and 5 deletions

4
cage.c
View file

@ -61,8 +61,6 @@
#include "xwayland.h"
#endif
extern bool numlock;
void
server_terminate(struct cg_server *server)
{
@ -264,7 +262,7 @@ parse_args(struct cg_server *server, int argc, char *argv[])
}
break;
case 'n':
numlock = true;
server->numlock = true;
break;
case 's':
server->allow_vt_switch = true;