Skip to content

Commit

Permalink
enable allow_zap to be configured from .wslgconfig (#43)
Browse files Browse the repository at this point in the history
Co-authored-by: Hideyuki Nagase <hideyukn@ntdev.microsoft.com>
  • Loading branch information
hideyukn88 and Hideyuki Nagase committed Sep 13, 2021
1 parent ae2b0d4 commit 9a55de1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rdprail-shell/shell.c
Expand Up @@ -670,6 +670,10 @@ shell_configuration(struct desktop_shell *shell)
/* default to not allow zap */
weston_config_section_get_bool(section,
"allow-zap", &allow_zap, false);
if (!allow_zap) {
s = getenv("WESTON_RDPRAIL_SHELL_ALLOW_ZAP");
allow_zap = (s && (strcmp(s, "true") == 0));
}
shell->allow_zap = allow_zap;

/* set "none" to default to disable optional key-bindings */
Expand Down

0 comments on commit 9a55de1

Please sign in to comment.