1
0
Fork 0
mirror of https://github.com/Cloudef/bemenu synced 2024-05-20 22:46:10 +02:00
bemenu/lib/renderers/wayland
Joan Bruguera 8217ae024b Fix exiting when an unexpected Wayland error occurs.
If an unexpected error was returned from a Wayland API during rendering (e.g.
from wl_display_flush), the code did set input.sym = XKB_KEY_Escape, so that
the next call to poll_key would return BM_KEY_ESCAPE and bemenu would quit.

However, this has been broken since #135, because input.key_pending was not
set, so the "fake" XKB_KEY_Escape is just ignored, bemenu doesn't quit, but
instead, it enters an infinite loop and keeps a CPU core at 100% usage.

The "quick fix" would be to just set input.key_pending wherever input.sym was
set to XKB_KEY_Escape. However, to make error handling less error-prone,
decouple it from input handling and add an error flag to (bm_menu_)render.
2022-08-03 08:55:34 +09:00
..
registry.c wayland: map keymaps with MAP_PRIVATE 2022-02-22 08:59:40 +09:00
wayland.c Fix exiting when an unexpected Wayland error occurs. 2022-08-03 08:55:34 +09:00
wayland.h Optimize redrawing 2022-02-08 22:23:02 +09:00
window.c Add relative width option 2021-12-29 17:22:10 +09:00
wlr-layer-shell-unstable-v1.xml wayland: update wlr-layer-shell-unstable-v1 protocol 2021-05-22 04:12:59 +09:00
xdg-output-unstable-v1.xml Use -m option for setting monitor name and monitor + cleanup 2021-02-05 16:53:43 +09:00