sway

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

commit 6c0fc2093641868df28c4087902a040f7fae05d4
parent 6350752d6be2abfac68aa16e891dd859aa5cdafa
Author: Drew DeVault <sir@cmpwn.com>
Date:   Wed, 14 Dec 2016 04:29:52 -0500

Merge pull request #991 from barfoo1/registry_fix

minor logic error in registry.c:seat_handle_capabilities()
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);