Skip to content

Commit

Permalink
Resolved logical merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
Azarattum committed Aug 8, 2021
1 parent 890deb7 commit 95fcc48
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions src/config/ParseConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -391,15 +391,12 @@ void ParseConfig::add_mapping(std::string name, Action output) {
}
else {
// set context default mapping
if (!it->default_mapping.empty())
if (!it->default_mapping.sequence.empty())
error("Duplicate mapping of '" + name + "'");
it->default_mapping = std::move(output);
}

// set context default mapping
if (!it->default_mapping.sequence.empty() || !it->default_mapping.command.empty())
error("duplicate mapping of '" + name + "'");
it->default_mapping = std::move(output);
m_commands_mapped[name] = true;
}

Expand Down
2 changes: 1 addition & 1 deletion src/config/ParseKeySequence.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ void ParseKeySequence::parse(It it, const It end) {
output_on_release = true;
}
else if (skip(&it, end, "~")) {
add_key_to_sequence(read_ident(&it, end), KeyState::Exclusive);
add_key_to_sequence(read_key(&it, end), KeyState::Exclusive);
}
else if (skip(&it, end, "(")) {
// begin together-group
Expand Down
3 changes: 0 additions & 3 deletions src/linux/client/FocusedWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ class FocusedWindow {
}

bool update() {
// TODO: is there a better way to prevent races?
const auto handler = XSetErrorHandler(&ignore_errors);

const auto window = get_focused_window();
auto window_title = get_window_title(window);
if (window == m_focused_window &&
Expand Down

0 comments on commit 95fcc48

Please sign in to comment.