mirror of
https://github.com/cage-kiosk/cage.git
synced 2026-04-07 08:21:27 -04:00
Command line option to hide cursor.
This commit is contained in:
parent
e7d8780f46
commit
9387fa4c20
3 changed files with 8 additions and 3 deletions
6
cage.c
6
cage.c
|
|
@ -208,6 +208,7 @@ usage(FILE *file, const char *cage)
|
|||
fprintf(file,
|
||||
"Usage: %s [OPTIONS] [--] APPLICATION\n"
|
||||
"\n"
|
||||
" -c\t Hide cursor\n"
|
||||
" -d\t Don't draw client side decorations, when possible\n"
|
||||
" -h\t Display this help message\n"
|
||||
" -m extend Extend the display across all connected outputs (default)\n"
|
||||
|
|
@ -223,8 +224,11 @@ static bool
|
|||
parse_args(struct cg_server *server, int argc, char *argv[])
|
||||
{
|
||||
int c;
|
||||
while ((c = getopt(argc, argv, "dhm:sv")) != -1) {
|
||||
while ((c = getopt(argc, argv, "cdhm:sv")) != -1) {
|
||||
switch (c) {
|
||||
case 'c':
|
||||
server->hide_cursor = true;
|
||||
break;
|
||||
case 'd':
|
||||
server->xdg_decoration = true;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue