mirror of
https://github.com/swaywm/sway.git
synced 2026-04-21 06:46:22 -04:00
Merge 289e5e793a into dadf3e9b78
This commit is contained in:
commit
69a662fa3c
4 changed files with 18 additions and 1 deletions
|
|
@ -413,6 +413,8 @@ struct cmd_results *config_command(char *exec, char **new_block) {
|
|||
&& handler->handle != cmd_bindgesture
|
||||
&& handler->handle != cmd_set
|
||||
&& handler->handle != cmd_for_window
|
||||
&& handler->handle != cmd_output
|
||||
&& handler->handle != cmd_input
|
||||
&& (*argv[i] == '\"' || *argv[i] == '\'')) {
|
||||
strip_quotes(argv[i]);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,6 +53,13 @@ struct cmd_results *cmd_input(int argc, char **argv) {
|
|||
return error;
|
||||
}
|
||||
|
||||
// Commands from config_command() & execute_command() don't handle quotes the same way
|
||||
for (int i = 0; i < argc; ++i) {
|
||||
if (*argv[i] == '\"' || *argv[i] == '\'') {
|
||||
strip_quotes(argv[i]);
|
||||
}
|
||||
}
|
||||
|
||||
sway_log(SWAY_DEBUG, "entering input block: %s", argv[0]);
|
||||
|
||||
config->handler_context.input_config = new_input_config(argv[0]);
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
#include "sway/commands.h"
|
||||
#include "sway/config.h"
|
||||
#include "sway/output.h"
|
||||
#include "stringop.h"
|
||||
#include "list.h"
|
||||
#include "log.h"
|
||||
|
||||
|
|
@ -43,6 +44,13 @@ struct cmd_results *cmd_output(int argc, char **argv) {
|
|||
"Refusing to configure the no op output");
|
||||
}
|
||||
|
||||
// Commands from config_command() & execute_command() don't handle quotes the same way
|
||||
for (int i = 0; i < argc; ++i) {
|
||||
if (*argv[i] == '\"' || *argv[i] == '\'') {
|
||||
strip_quotes(argv[i]);
|
||||
}
|
||||
}
|
||||
|
||||
struct output_config *output = NULL;
|
||||
if (strcmp(argv[0], "-") == 0 || strcmp(argv[0], "--") == 0) {
|
||||
if (config->reading) {
|
||||
|
|
|
|||
|
|
@ -733,7 +733,7 @@ void apply_output_config_to_outputs(struct output_config *oc) {
|
|||
wl_list_for_each_safe(sway_output, tmp, &root->all_outputs, link) {
|
||||
char *name = sway_output->wlr_output->name;
|
||||
output_get_identifier(id, sizeof(id), sway_output);
|
||||
if (wildcard || !strcmp(name, oc->name) || !strcmp(id, oc->name)) {
|
||||
if (wildcard || !output_name_cmp(oc, name) || !output_name_cmp(oc, id)) {
|
||||
struct output_config *current = get_output_config(id, sway_output);
|
||||
if (!current) {
|
||||
// No stored output config matched, apply oc directly
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue