i3/src
Steven McDonald 1ab76fb05a Fix key bindings on big-endian platforms
input_code is a uint16_t, but xcb_keycode_t is uint8_t, meaning that
only the first byte of input_code is inspected by memmem. On
little-endian platforms, this code would have worked by accident, since
the first byte of input_code represents the 8 least significant bits.
However, on big-endian platforms the first byte is the 8 most
significant bits, which means memmem is scanning bind->translated_to
for the wrong keycode (probably 0).

In order to work correctly on big-endian and little-endian platforms,
simply typecast input_code to an xcb_keycode_t and pass that to memmem.

The observed behaviour associated with this bug is that key bindings
don't work at all. This patch has been tested on an iBook G4 running
OpenBSD -current, and key bindings work properly with this fix applied.
2015-03-01 21:07:03 +11:00
..
assignments.c clang-format-3.5 **/*.h **/*.c 2014-06-19 11:20:32 +02:00
bindings.c Fix key bindings on big-endian platforms 2015-03-01 21:07:03 +11:00
click.c Handle button release events 2015-02-10 17:46:02 -05:00
commands_parser.c Bugfix: use the command parser to properly extract workspace names 2014-10-01 22:50:48 +02:00
commands.c Include workspace con in workspace event 2014-12-22 09:47:31 +01:00
con.c Properly invalidate rendering cache when updating orientation (Thanks hercek) 2015-02-11 21:13:55 +01:00
config_directives.c Merge branch 'master' into next 2015-01-31 22:56:08 +01:00
config_parser.c Allow to validate the config file without X. 2014-08-25 19:34:26 +02:00
config.c bugfix: copy binding before run 2014-11-16 23:36:27 +01:00
debug.c format **/*.c with clang-format-3.5 2014-06-15 19:07:02 +02:00
display_version.c format **/*.c with clang-format-3.5 2014-06-15 19:07:02 +02:00
ewmh.c Support _NET_WM_MOVERESIZE 2015-02-11 00:07:28 +01:00
fake_outputs.c clang-format-3.5 **/*.h **/*.c 2014-06-19 11:20:32 +02:00
floating.c Implement the window::floating event 2014-06-23 21:18:12 +02:00
handlers.c Merge pull request #1462 from carrotIndustries/netwm_moveresize 2015-02-11 20:30:05 +01:00
i3.mk cleanup: src/i3.mk: add XKB_COMMON_CFLAGS when compiling i3 2014-06-25 17:58:16 +02:00
ipc.c Include workspace con in workspace event 2014-12-22 09:47:31 +01:00
key_press.c Feature: implement mouse bindings 2014-06-19 12:28:54 +02:00
load_layout.c Merge branch 'master' into next 2015-01-31 22:42:54 +01:00
log.c format **/*.c with clang-format-3.5 2014-06-15 19:07:02 +02:00
main.c Allow to validate the config file without X. 2014-08-25 19:34:26 +02:00
Makefile Add stub Makefiles to allow subdir make calls 2012-07-22 19:57:48 +02:00
manage.c Always explicitly set border widths on manage 2014-07-11 00:33:20 +02:00
match.c clang-format-3.5 **/*.h **/*.c 2014-06-19 11:20:32 +02:00
move.c Include workspace con in workspace event 2014-12-22 09:47:31 +01:00
output.c clang-format-3.5 **/*.h **/*.c 2014-06-19 11:20:32 +02:00
randr.c clang-format-3.5 **/*.h **/*.c 2014-06-19 11:20:32 +02:00
regex.c use I3__FILE__ for DLOG, leave __FILE__ as is 2012-08-12 12:19:47 +02:00
render.c Merge branch 'master' into next 2015-01-17 18:20:43 +01:00
resize.c format **/*.c with clang-format-3.5 2014-06-15 19:07:02 +02:00
restore_layout.c don’t set names corresponding to debug colors, remove “sleep 1”. 2014-07-15 10:36:31 +02:00
scratchpad.c clang-format-3.5 **/*.h **/*.c 2014-06-19 11:20:32 +02:00
sd-daemon.c format **/*.c with clang-format-3.5 2014-06-15 19:07:02 +02:00
sighandler.c clang-format-3.5 **/*.h **/*.c 2014-06-19 11:20:32 +02:00
startup.c Fix start_application() doc about which shell is used 2014-12-22 09:48:03 +01:00
tree.c Properly invalidate rendering cache when updating orientation (Thanks hercek) 2015-02-11 21:13:55 +01:00
util.c Bugfix: create the directory for storing the restart state (Thanks hjem) 2014-06-27 09:04:51 +02:00
window.c Properly handle windows unsetting WM_TRANSIENT_FOR (Thanks Janus) 2014-08-26 10:00:14 +02:00
workspace.c Include workspace con in workspace event 2014-12-22 09:47:31 +01:00
x.c Revert "Bugfix: Set input focus with last timestamp" 2014-11-23 00:36:09 +01:00
xcb.c format **/*.c with clang-format-3.5 2014-06-15 19:07:02 +02:00
xcursor.c format **/*.c with clang-format-3.5 2014-06-15 19:07:02 +02:00
xinerama.c clang-format-3.5 **/*.h **/*.c 2014-06-19 11:20:32 +02:00