sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit dc6942d10df82402392ba6e4cd096a293acdd9fb
parent 6350752d6be2abfac68aa16e891dd859aa5cdafa
Author: barfoo1 <franz.hose1234@web.de>
Date:   Wed, 14 Dec 2016 10:24:13 +0100

minor logic error
Diffstat:
Mwayland/registry.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/wayland/registry.c b/wayland/registry.c @@ -182,7 +182,7 @@ static void seat_handle_capabilities(void *data, struct wl_seat *seat, enum wl_seat_capability caps) { struct registry *reg = data; - if ((caps & WL_SEAT_CAPABILITY_KEYBOARD) && !reg->pointer) { + if ((caps & WL_SEAT_CAPABILITY_POINTER) && !reg->pointer) { reg->pointer = wl_seat_get_pointer(reg->seat); } else if (!(caps & WL_SEAT_CAPABILITY_POINTER) && reg->pointer) { wl_pointer_destroy(reg->pointer);