Skip to content

Commit

Permalink
Preparing pre-release
Browse files Browse the repository at this point in the history
  • Loading branch information
houmain committed Mar 28, 2024
1 parent 124e16b commit b579eb2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,29 @@
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [Version 4.0.0] - 2024-03-16
## [Version 4.0.0] - 2024-03-28

### Added

- Added virtual key `ContextActive` (#91).
- Added aliases with parameters (#91).
- Added `keymapperctl` application (#105).
- Added device filter support on Windows using `Interception` (#107).
- Allow to invert context filters with !=.
- Added fallthrough of empty context blocks.

### Changed

- Ignore aliases defined in contexts of other systems.
- Completely resetting state of virtual keys when updating the configuration.
- Setting `keymapper` process priority to high on Windows
- Exiting when config is invalid and not reloaded on Windows (#114).
- Allow to separate context filters with comma.

### Fixed

- Fixed groups with not timeout.
- Not grabbing gamedevices on Linux.
- Fixed starting multiple terminal commands at once.

## [Version 3.5.2] - 2024-01-24
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ if(MSVC)
add_compile_options($<$<CONFIG:RELEASE>:/MT>)
add_compile_definitions(_CRT_SECURE_NO_WARNINGS _WINSOCK_DEPRECATED_NO_WARNINGS)
else()
add_compile_options(-Wall -Wpedantic)
add_compile_options(-Wall -Wpedantic -Wno-unknown-pragmas)
endif()

include_directories(src)
Expand Down
2 changes: 1 addition & 1 deletion src/client/unix/StringTyperImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ template<typename T, typename F>
void for_each_modifier_combination(const T& masks, F&& callback) {
for (auto bit = 0x00; bit < (1 << masks.size()); ++bit) {
auto combo = 0x00;
for (auto i = 0; i < masks.size(); ++i)
for (auto i = 0u; i < masks.size(); ++i)
if (bit & (1 << i))
combo |= masks[i];
callback(combo);
Expand Down
4 changes: 2 additions & 2 deletions src/client/unix/StringTyperWayland.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ class StringTyperWayland : public StringTyperImpl {
if (auto name = xkb_keymap_key_get_name(keymap, keycode))
if (auto key = xkb_keyname_to_key(name); key != Key::none) {
const auto layouts = xkb_keymap_num_layouts_for_key(keymap, keycode);
for (auto layout = 0; layout < layouts; ++layout) {
for (auto layout = 0u; layout < layouts; ++layout) {
const auto levels = xkb_keymap_num_levels_for_key(keymap, keycode, layout);
for (auto level = 0; level < levels; ++level) {
for (auto level = 0u; level < levels; ++level) {
const auto num_symbols = xkb_keymap_key_get_syms_by_level(keymap, keycode,
layout, level, &symbols);
const auto num_masks = xkb_keymap_key_get_mods_for_level(keymap, keycode,
Expand Down

0 comments on commit b579eb2

Please sign in to comment.